mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: move the update window forward when clicking on the "Check for update" button in the App settings (#1240)
This commit is contained in:
@@ -248,7 +248,7 @@ class ApplicationSettings: NSStackView {
|
||||
}
|
||||
|
||||
DispatchQueue.main.async(execute: {
|
||||
self.updateWindow.open(version)
|
||||
self.updateWindow.open(version, settingButton: true)
|
||||
return
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user