Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS] Fix clearRecentDocuments not emptying the file box #466

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions macos/QMK Toolbox/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="bqF-op-bMF">
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="bqF-op-bMF">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22689"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
Expand Down Expand Up @@ -326,7 +326,7 @@
<rect key="frame" x="4" y="5" width="778" height="34"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<comboBox focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="RyP-fO-7kx">
<comboBox verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="RyP-fO-7kx">
<rect key="frame" x="7" y="6" width="579" height="21"/>
<comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" placeholderString="Click Open or drag to window to select file" drawsBackground="YES" completes="NO" numberOfVisibleItems="5" id="loT-oz-kzc">
<font key="font" metaFont="cellTitle"/>
Expand All @@ -347,7 +347,7 @@
<action selector="openButtonClick:" target="9uD-mB-xHs" id="nJc-eW-jYh"/>
</connections>
</button>
<comboBox focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="0Ph-Pe-wCm" customClass="MicrocontrollerSelector" customModule="QMK_Toolbox" customModuleProvider="target">
<comboBox verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="0Ph-Pe-wCm" customClass="MicrocontrollerSelector" customModule="QMK_Toolbox" customModuleProvider="target">
<rect key="frame" x="649" y="6" width="124" height="21"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="120" id="L3g-2e-wKZ"/>
Expand Down Expand Up @@ -519,7 +519,7 @@
<rect key="frame" x="0.0" y="0.0" width="640" height="480"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<comboBox focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Wcn-4s-O2b">
<comboBox verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Wcn-4s-O2b">
<rect key="frame" x="9" y="448" width="624" height="23"/>
<comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" borderStyle="bezel" placeholderString="No HID console devices connected" drawsBackground="YES" buttonBordered="NO" completes="NO" numberOfVisibleItems="5" id="6WM-Ih-xnI">
<font key="font" metaFont="system"/>
Expand Down Expand Up @@ -1784,15 +1784,15 @@ down</string>
<userDefinedRuntimeAttribute type="string" keyPath="legend" value="enter"/>
</userDefinedRuntimeAttributes>
</customView>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="4Xq-l8-2Gv">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="4Xq-l8-2Gv">
<rect key="frame" x="722" y="140" width="140" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="Last VK: -" id="YVz-io-kv8">
<font key="font" usesAppearanceFont="YES"/>
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="iwr-Dd-3bo">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="iwr-Dd-3bo">
<rect key="frame" x="722" y="122" width="140" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="Flags: -" id="9ep-QN-36O">
<font key="font" usesAppearanceFont="YES"/>
Expand Down
1 change: 1 addition & 0 deletions macos/QMK Toolbox/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class MainViewController: NSViewController, USBListenerDelegate {
}
}

@IBAction
func clearRecentDocuments(_ sender: Any) {
NSDocumentController.shared.clearRecentDocuments(sender)
filepathBox.removeAllItems()
Expand Down