diff --git a/Kit/module/module.swift b/Kit/module/module.swift index e12aefea..fb4995ff 100644 --- a/Kit/module/module.swift +++ b/Kit/module/module.swift @@ -324,14 +324,8 @@ open class Module { return } let isEmpty = self.menuBar.widgets.filter({ $0.isActive }).isEmpty - var state = self.enabled - - if isEmpty && self.enabled { - state = false - } else if !isEmpty && !self.enabled { - state = true + if !isEmpty && !self.enabled { + NotificationCenter.default.post(name: .toggleModule, object: nil, userInfo: ["module": self.config.name, "state": true]) } - - NotificationCenter.default.post(name: .toggleModule, object: nil, userInfo: ["module": self.config.name, "state": state]) } } diff --git a/Stats/Supporting Files/pl.lproj/Localizable.strings b/Stats/Supporting Files/pl.lproj/Localizable.strings index 3b96a0a3..6061a451 100644 --- a/Stats/Supporting Files/pl.lproj/Localizable.strings +++ b/Stats/Supporting Files/pl.lproj/Localizable.strings @@ -213,7 +213,7 @@ "Widgets" = "Widżety"; "Popup" = "Okienko"; "Notifications" = "Powiadomienia"; -"Merge widgets" = "Pąłącz widżety"; +"Merge widgets" = "Połącz widżety"; "No available widgets to configure" = "Brak dostępnych widżetów do konfiguracji"; "No options to configure for the popup in this module" = "Brak opcji do skonfigurowania dla okienka w tym module"; "Process" = "Proces";