[Sandbox] Remove startup folder consent prompt
Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
7d26150c26
commit
61778b7165
|
@ -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
|
||||
|
||||
- (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"]) {
|
||||
showCrashlyticsConsent(self);
|
||||
showFolderPermissionConsent(self);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
extern NSString *iTunesDropType;
|
||||
|
||||
extern void showCrashlyticsConsent(NSWindow *window);
|
||||
extern void showFolderPermissionConsent(NSWindow *window);
|
||||
|
||||
@implementation MiniWindow
|
||||
|
||||
|
@ -46,7 +45,6 @@ extern void showFolderPermissionConsent(NSWindow *window);
|
|||
|
||||
if([[NSUserDefaults standardUserDefaults] boolForKey:@"miniMode"]) {
|
||||
showCrashlyticsConsent(self);
|
||||
showFolderPermissionConsent(self);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -77,8 +77,5 @@
|
|||
|
||||
"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.";
|
||||
"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";
|
||||
"ConsentNo" = "No";
|
||||
"ConsentOK" = "OK";
|
||||
|
|
|
@ -77,8 +77,5 @@
|
|||
|
||||
"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.";
|
||||
"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";
|
||||
"ConsentNo" = "No";
|
||||
"ConsentOK" = "OK";
|
||||
|
|
Loading…
Reference in New Issue