summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/mac_util.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/mac_util.mm b/base/mac_util.mm
index b2e9b6e..dcfb6470 100644
--- a/base/mac_util.mm
+++ b/base/mac_util.mm
@@ -46,8 +46,7 @@ bool AmIBundled() {
bool IsBackgroundOnlyProcess() {
NSBundle* main_bundle = MainAppBundle();
NSDictionary* info_dictionary = [main_bundle infoDictionary];
- return [[info_dictionary objectForKey:@"LSUIElement"]
- isEqualToString:@"1"] ? true : false;
+ return [[info_dictionary objectForKey:@"LSUIElement"] boolValue] != NO;
}
// No threading worries since NSBundle isn't thread safe.