mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-10 05:44:16 +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];
|
||||
path = [[NSWorkspace sharedWorkspace] URLForApplicationWithBundleIdentifier:ns_app];
|
||||
recovered = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!recovered) return NULL;
|
||||
}
|
||||
|
||||
NSImage* image = [[NSWorkspace sharedWorkspace] iconForFile:path.path];
|
||||
if (!image) return NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue