From dad91c836da2eb4d88c4b8022dae06855b50e960 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Sun, 27 Mar 2022 12:03:08 -0400 Subject: [PATCH] Cleanup uncalled method. --- Clocker/AppDelegate.swift | 4 ---- Clocker/Panel/ParentPanelController.swift | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Clocker/AppDelegate.swift b/Clocker/AppDelegate.swift index a2d76ec..e49ba70 100644 --- a/Clocker/AppDelegate.swift +++ b/Clocker/AppDelegate.swift @@ -262,10 +262,6 @@ open class AppDelegate: NSObject, NSApplicationDelegate { return statusBarHandler } - open func setPanelDefaults() { - panelController.updateDefaultPreferences() - } - open func setupMenubarTimer() { statusBarHandler.setupStatusItem() } diff --git a/Clocker/Panel/ParentPanelController.swift b/Clocker/Panel/ParentPanelController.swift index 7f0de6c..4d16a3f 100644 --- a/Clocker/Panel/ParentPanelController.swift +++ b/Clocker/Panel/ParentPanelController.swift @@ -790,7 +790,7 @@ class ParentPanelController: NSWindowController { sharedDelegate.setupFloatingWindow(false) } else { sharedDelegate.setupFloatingWindow(true) - sharedDelegate.setPanelDefaults() + updateDefaultPreferences() } let mode = inverseSelection.isEqual(to: NSNumber(value: 1)) ? "Floating Mode" : "Menubar Mode"