mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-13 23:27:14 +00:00
break early if recovered
This commit is contained in:
parent
f6b7b0a3a8
commit
69d96e3a53
1 changed files with 2 additions and 0 deletions
|
@ -86,10 +86,12 @@ CGImageRef workspace_icon_for_app(char* app) {
|
||||||
ns_app = [app bundleIdentifier];
|
ns_app = [app bundleIdentifier];
|
||||||
path = [[NSWorkspace sharedWorkspace] URLForApplicationWithBundleIdentifier:ns_app];
|
path = [[NSWorkspace sharedWorkspace] URLForApplicationWithBundleIdentifier:ns_app];
|
||||||
recovered = true;
|
recovered = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!recovered) return NULL;
|
if (!recovered) return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSImage* image = [[NSWorkspace sharedWorkspace] iconForFile:path.path];
|
NSImage* image = [[NSWorkspace sharedWorkspace] iconForFile:path.path];
|
||||||
if (!image) return NULL;
|
if (!image) return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue