feat: added option to show all widgets per module as one item in the menu bar. It's an early feature, so there is a bugs. To work fine with this feature a lot of widgets must be adjusted. It supports organizing the elements right from the widget selector settings already. IT'S AN EARLY FEATURE!

This commit is contained in:
Serhiy Mytrovtsiy
2022-07-09 11:37:00 +02:00
parent ab0a997912
commit 0b7be467e1
14 changed files with 295 additions and 56 deletions

View File

@@ -84,7 +84,7 @@ class SettingsWindow: NSWindow, NSWindowDelegate {
public func setModules() {
self.viewController.setModules(modules)
if modules.filter({ $0.enabled != false && $0.available != false && !$0.widgets.filter({ $0.isActive }).isEmpty }).isEmpty {
if modules.filter({ $0.enabled != false && $0.available != false && !$0.menuBar.widgets.filter({ $0.isActive }).isEmpty }).isEmpty {
self.setIsVisible(true)
}
}