mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: improved popup toggling when clicking the same module widgets. When modules have a few widgets enabled and opened popup view, clicking on another widget the popup disappear. Now click will reopen popup view on the target widget, not close the view.
This commit is contained in:
@@ -19,6 +19,7 @@ public protocol Popup_p: NSView {
|
||||
internal class PopupWindow: NSWindow, NSWindowDelegate {
|
||||
private let viewController: PopupViewController = PopupViewController()
|
||||
internal var locked: Bool = false
|
||||
internal var openedBy: widget_t? = nil
|
||||
|
||||
init(title: String, view: Popup_p?, visibilityCallback: @escaping (_ state: Bool) -> Void) {
|
||||
self.viewController.setup(title: title, view: view)
|
||||
|
||||
Reference in New Issue
Block a user