From ead885980ed059983b35062be0dfa9e1b12d2370 Mon Sep 17 00:00:00 2001 From: Steve Schow Date: Tue, 4 Jul 2017 15:52:00 -0600 Subject: [PATCH] default to integrated only mode if possible --- Classes/gfxCardStatusAppDelegate.m | 12 ++++++++++++ gfxCardStatus-Info.plist | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Classes/gfxCardStatusAppDelegate.m b/Classes/gfxCardStatusAppDelegate.m index 9dae028..f006936 100644 --- a/Classes/gfxCardStatusAppDelegate.m +++ b/Classes/gfxCardStatusAppDelegate.m @@ -99,6 +99,18 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification // Check for updates if the user has them enabled. if ([_prefs shouldCheckForUpdatesOnStartup]) [updater checkForUpdatesInBackground]; + + // for now init to integrated-only mode. + // Later on do this only if prefs were set for it + + NSArray *taskList = [GSProcess getTaskList]; + if (taskList.count > 0) { + GTMLoggerInfo(@"Not setting Integrated Only because of dependencies list items: %@", taskList); + } + else { + GTMLoggerInfo(@"Setting Integrated Only..."); + [GSMux setMode:GSSwitcherModeForceIntegrated]; + } } #pragma mark - Termination Notifications diff --git a/gfxCardStatus-Info.plist b/gfxCardStatus-Info.plist index be65bdb..3d522e0 100755 --- a/gfxCardStatus-Info.plist +++ b/gfxCardStatus-Info.plist @@ -19,13 +19,13 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.4.3i + 2.4.4i CFBundleSignature ???? CFBundleURLTypes CFBundleVersion - 2.4.3i + 2.4.4i LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} LSUIElement