[Sandbox] Remove startup folder consent prompt

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
lastfm
Christopher Snowhill 2022-06-29 12:02:59 -07:00
parent 82179a5f10
commit 170310d7e5
4 changed files with 0 additions and 22 deletions

View File

@ -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);
} }
} }

View File

@ -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);
} }
} }

View File

@ -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";

View File

@ -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";