Refresh icon if launched via a software update
This commit is contained in:
parent
a773297b3a
commit
887a8104f5
@ -35,6 +35,9 @@ static uint32_t color_to_int(NSColor *color)
|
|||||||
|
|
||||||
- (void) applicationDidFinishLaunching:(NSNotification *)notification
|
- (void) applicationDidFinishLaunching:(NSNotification *)notification
|
||||||
{
|
{
|
||||||
|
// Refresh icon if launched via a software update
|
||||||
|
[NSApplication sharedApplication].applicationIconImage = [NSImage imageNamed:@"AppIcon"];
|
||||||
|
|
||||||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
||||||
for (unsigned i = 0; i < GBButtonCount; i++) {
|
for (unsigned i = 0; i < GBButtonCount; i++) {
|
||||||
if ([[defaults objectForKey:button_to_preference_name(i, 0)] isKindOfClass:[NSString class]]) {
|
if ([[defaults objectForKey:button_to_preference_name(i, 0)] isKindOfClass:[NSString class]]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user