fix: some tooltips would remain on screen (closes #2190)

This commit is contained in:
Louis Pontoise committed 2022-12-10 19:26:52 +01:00
1 parent 4f26bc20a0
commit 6526caae30
1 file changed
+9
+9
View File
@@ -113,6 +113,15 @@ class App: AppCenterApplication, NSApplicationDelegate {
isFirstSummon = true
MouseEvents.toggle(false)
hideThumbnailPanelWithoutChangingKeyWindow()
hideAllTooltips()
}
/// some tooltips may not be hidden when the main window is hidden; we force it through a private API
private func hideAllTooltips() {
let selector = NSSelectorFromString("abortAllToolTips")
if NSApp.responds(to: selector) {
NSApp.perform(selector)
}
}
/// we don't want another window to become key when the thumbnailPanel is hidden