Skip to content
Snippets Groups Projects
Commit 4c5794f5 authored by George Nachman's avatar George Nachman Committed by GitHub
Browse files

Merge pull request #334 from andystanton/add_check_for_updates_to_menubar_icon

Add "check for updates" to menubar icon
parents 78d6e322 a8f0f6c6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1120,6 +1120,7 @@ DQ
<outlet property="sendInputToAllPanes" destination="1266" id="1279"/>
<outlet property="sendInputToAllSessions" destination="1264" id="1278"/>
<outlet property="showFullScreenTabs" destination="1257" id="1260"/>
<outlet property="suUpdater" destination="879" id="FRj-mW-Vma"/>
<outlet property="toolbeltMenu" destination="1296" id="1299"/>
<outlet property="useTransparency" destination="1228" id="1230"/>
<outlet property="windowArrangementsAsTabs_" destination="z6V-EJ-Ntf" id="wse-Wc-WVw"/>
Loading
Loading
Loading
Loading
@@ -166,6 +166,7 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
IBOutlet NSMenuItem *showFullScreenTabs;
IBOutlet NSMenuItem *useTransparency;
IBOutlet NSMenuItem *maximizePane;
IBOutlet SUUpdater * suUpdater;
IBOutlet NSMenuItem *_showTipOfTheDay; // Here because we must remove it for older OS versions.
BOOL secureInputDesired_;
BOOL quittingBecauseLastWindowClosed_;
Loading
Loading
@@ -1067,6 +1068,7 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
- (NSMenu *)statusBarMenu {
NSMenu *menu = [[NSMenu alloc] init];
NSMenuItem *item;
item = [[[NSMenuItem alloc] initWithTitle:@"Preferences"
action:@selector(showAndOrderFrontRegardlessPrefWindow:)
keyEquivalent:@""] autorelease];
Loading
Loading
@@ -1077,6 +1079,11 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
keyEquivalent:@""] autorelease];
[menu addItem:item];
 
item = [[[NSMenuItem alloc] initWithTitle:@"Check For Updates"
action:@selector(checkForUpdatesFromMenu:)
keyEquivalent:@""] autorelease];
[menu addItem:item];
item = [[[NSMenuItem alloc] initWithTitle:@"Quit iTerm2"
action:@selector(terminate:)
keyEquivalent:@""] autorelease];
Loading
Loading
@@ -1478,6 +1485,10 @@ static const NSTimeInterval kOneMonth = 30 * 24 * 60 * 60;
}
}
 
- (IBAction)checkForUpdatesFromMenu:(id)sender {
[suUpdater checkForUpdates:(sender)];
}
- (void)warnAboutChangeToDefaultPasteBehavior {
static NSString *const kHaveWarnedAboutPasteConfirmationChange = @"NoSyncHaveWarnedAboutPasteConfirmationChange";
if ([[NSUserDefaults standardUserDefaults] boolForKey:kHaveWarnedAboutPasteConfirmationChange]) {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment