feat: move the update window forward when clicking on the "Check for update" button in the App settings (#1240)

This commit is contained in:
Serhiy Mytrovtsiy
2023-01-26 16:15:21 +01:00
parent d3cc02c25f
commit 4bf9e38d83
2 changed files with 3 additions and 3 deletions

View File

@@ -248,7 +248,7 @@ class ApplicationSettings: NSStackView {
}
DispatchQueue.main.async(execute: {
self.updateWindow.open(version)
self.updateWindow.open(version, settingButton: true)
return
})
})

View File

@@ -41,8 +41,8 @@ class UpdateWindow: NSWindow, NSWindowDelegate {
windowController.loadWindow()
}
public func open(_ v: version_s) {
if !self.isVisible {
public func open(_ v: version_s, settingButton: Bool = false) {
if !self.isVisible || settingButton {
self.setIsVisible(true)
self.makeKeyAndOrderFront(nil)
}