Update AppIconOptionsController.m

This commit is contained in:
arichornlover 2024-04-24 19:55:18 -05:00 committed by GitHub
parent e2f6ace200
commit a42e2fef61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,7 +123,8 @@
} else {
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
[dict setObject:iconURL forKey:@"iconURL"];
[dict writeToFile:[[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"] atomically:YES];
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"];
[dict writeToFile:filePath atomically:YES];
[self showAlertWithTitle:@"Alternate Icon" message:@"Please restart the app to apply the alternate icon"];
}