Skip to content

Commit 02c463e

Browse files
authored
Merge pull request #922 from lukepistrol/fix/update-from-menu-bar
[fix]: update from menu bar
2 parents 96298c2 + 5997a85 commit 02c463e

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CodeEdit.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3035,7 +3035,7 @@
30353035
isa = XCBuildConfiguration;
30363036
buildSettings = {
30373037
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
3038-
ASSETCATALOG_COMPILER_APPICON_NAME = AppIconDev;
3038+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIconAlpha;
30393039
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
30403040
CODE_SIGN_ENTITLEMENTS = CodeEdit/CodeEdit.entitlements;
30413041
CODE_SIGN_IDENTITY = "Apple Development";

CodeEdit/AppDelegate.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ final class AppDelegate: NSObject, NSApplicationDelegate, ObservableObject {
180180
FeedbackView().showWindow()
181181
}
182182

183+
@IBAction func checkForUpdates(_ sender: Any) {
184+
updater.checkForUpdates()
185+
}
186+
183187
/// Tries to focus a window with specified view content type.
184188
/// - Parameter type: The type of viewContent which hosted in a window to be focused.
185189
/// - Returns: `true` if window exist and focused, oterwise - `false`

CodeEdit/MainMenu.xib

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21225" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21507" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21225"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21507"/>
66
</dependencies>
77
<objects>
88
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication"/>
99
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
1010
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
1111
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
12-
<customObject id="lXw-SP-s0Z" customClass="SPUStandardUpdaterController"/>
1312
<menu title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
1413
<items>
1514
<menuItem title="CodeEdit" id="1Xt-HY-uBw">
@@ -28,7 +27,7 @@
2827
<menuItem title="Check for Updates…" id="I48-Xe-LWa">
2928
<modifierMask key="keyEquivalentModifierMask"/>
3029
<connections>
31-
<action selector="checkForUpdates:" target="lXw-SP-s0Z" id="Jzk-vc-Mun"/>
30+
<action selector="checkForUpdates:" target="-1" id="WsK-bn-4sr"/>
3231
</connections>
3332
</menuItem>
3433
<menuItem isSeparatorItem="YES" id="VOq-y0-SEH"/>

0 commit comments

Comments
 (0)