[Sandbox] Remove startup folder consent prompt
Signed-off-by: Christopher Snowhill <kode54@gmail.com>lastfm
parent
82179a5f10
commit
170310d7e5
|
@ -31,19 +31,6 @@ void showCrashlyticsConsent(NSWindow *window) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void showFolderPermissionConsent(NSWindow *window) {
|
|
||||||
if([AppController globalPathSuggesterEmpty]) {
|
|
||||||
NSAlert *alert = [[NSAlert alloc] init];
|
|
||||||
[alert setMessageText:NSLocalizedString(@"FolderConsentTitle", @"")];
|
|
||||||
[alert setInformativeText:NSLocalizedString(@"FolderConsentText", @"")];
|
|
||||||
[alert addButtonWithTitle:NSLocalizedString(@"ConsentOK", @"")];
|
|
||||||
|
|
||||||
[alert beginSheetModalForWindow:window completionHandler:^(NSModalResponse returnCode) {
|
|
||||||
[AppController globalShowPathSuggester];
|
|
||||||
}];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@implementation MainWindow
|
@implementation MainWindow
|
||||||
|
|
||||||
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation {
|
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation {
|
||||||
|
@ -66,7 +53,6 @@ void showFolderPermissionConsent(NSWindow *window) {
|
||||||
|
|
||||||
if(![[NSUserDefaults standardUserDefaults] boolForKey:@"miniMode"]) {
|
if(![[NSUserDefaults standardUserDefaults] boolForKey:@"miniMode"]) {
|
||||||
showCrashlyticsConsent(self);
|
showCrashlyticsConsent(self);
|
||||||
showFolderPermissionConsent(self);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
extern NSString *iTunesDropType;
|
extern NSString *iTunesDropType;
|
||||||
|
|
||||||
extern void showCrashlyticsConsent(NSWindow *window);
|
extern void showCrashlyticsConsent(NSWindow *window);
|
||||||
extern void showFolderPermissionConsent(NSWindow *window);
|
|
||||||
|
|
||||||
@implementation MiniWindow
|
@implementation MiniWindow
|
||||||
|
|
||||||
|
@ -46,7 +45,6 @@ extern void showFolderPermissionConsent(NSWindow *window);
|
||||||
|
|
||||||
if([[NSUserDefaults standardUserDefaults] boolForKey:@"miniMode"]) {
|
if([[NSUserDefaults standardUserDefaults] boolForKey:@"miniMode"]) {
|
||||||
showCrashlyticsConsent(self);
|
showCrashlyticsConsent(self);
|
||||||
showFolderPermissionConsent(self);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,8 +77,5 @@
|
||||||
|
|
||||||
"CrashlyticsConsentTitle" = "Crashlytics crash collection";
|
"CrashlyticsConsentTitle" = "Crashlytics crash collection";
|
||||||
"CrashlyticsConsentText" = "Would you like to allow Crashlytics to submit crash reports? You may turn this off again in Preferences. We won't ask you again.";
|
"CrashlyticsConsentText" = "Would you like to allow Crashlytics to submit crash reports? You may turn this off again in Preferences. We won't ask you again.";
|
||||||
"FolderConsentTitle" = "Folder permission";
|
|
||||||
"FolderConsentText" = "You have not added any folder to the permission dialog. Please add your music folders before adding any documents, then restart the player.";
|
|
||||||
"ConsentYes" = "Yes";
|
"ConsentYes" = "Yes";
|
||||||
"ConsentNo" = "No";
|
"ConsentNo" = "No";
|
||||||
"ConsentOK" = "OK";
|
|
||||||
|
|
|
@ -77,8 +77,5 @@
|
||||||
|
|
||||||
"CrashlyticsConsentTitle" = "Crashlytics crash collection";
|
"CrashlyticsConsentTitle" = "Crashlytics crash collection";
|
||||||
"CrashlyticsConsentText" = "Would you like to allow Crashlytics to submit crash reports? You may turn this off again in Preferences. We won't ask you again.";
|
"CrashlyticsConsentText" = "Would you like to allow Crashlytics to submit crash reports? You may turn this off again in Preferences. We won't ask you again.";
|
||||||
"FolderConsentTitle" = "Folder permission";
|
|
||||||
"FolderConsentText" = "You have not added any folder to the permission dialog. Please add your music folders before adding any documents, then restart the player.";
|
|
||||||
"ConsentYes" = "Yes";
|
"ConsentYes" = "Yes";
|
||||||
"ConsentNo" = "No";
|
"ConsentNo" = "No";
|
||||||
"ConsentOK" = "OK";
|
|
||||||
|
|
Loading…
Reference in New Issue