From f94e74f261f920afc57438e4af6e302c01228ac9 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 23 Feb 2018 12:33:29 +0100 Subject: [PATCH] Add SBIgnoreDonationAlert pref. --- Classes/AppDelegate.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/AppDelegate.swift b/Classes/AppDelegate.swift index de1794c..e1f795a 100644 --- a/Classes/AppDelegate.swift +++ b/Classes/AppDelegate.swift @@ -151,7 +151,9 @@ class AppDelegate: NSObject, NSApplicationDelegate { } func applicationDidFinishLaunching(_ notification: Notification) { - runDonateAlert() + if UserDefaults.standard.bool(forKey: "SBIgnoreDonationAlert") == false { + runDonateAlert() + } } func applicationShouldTerminate(_ sender: NSApplication) -> NSApplication.TerminateReply {