Skip to content

Commit 67f718b

Browse files
committed
fixed webview losing focus in window mode, fixed jumpy volume bug
1 parent 52895e3 commit 67f718b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

native/app/Source/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, SUUpdaterDelegate {
4141
}
4242

4343
func applicationDidBecomeActive(_ notification: Notification) {
44-
44+
UI.show()
4545
}
4646

4747
func updaterDidNotFindUpdate(_ updater: SUUpdater) {

native/app/Source/UI/Window.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class Window: NSWindow, NSWindowDelegate {
102102
// MARK: - Public functions
103103

104104
func show() {
105-
self.makeKeyAndOrderFront(nil)
105+
self.makeKeyAndOrderFront(UI.viewController.webView)
106106
}
107107

108108
func hide() {
@@ -114,15 +114,15 @@ class Window: NSWindow, NSWindowDelegate {
114114
}
115115

116116
override var isMainWindow: Bool {
117-
return super.isMainWindow || (self.parent?.isMainWindow ?? false)
117+
return super.isMainWindow || (self.parent?.isMainWindow ?? true)
118118
}
119119

120120
override var canBecomeKey: Bool {
121121
return true
122122
}
123123

124124
override var isKeyWindow: Bool {
125-
return super.isKeyWindow || (self.parent?.isKeyWindow ?? false)
125+
return super.isKeyWindow || (self.parent?.isKeyWindow ?? true)
126126
}
127127

128128
override func performDrag(with event: NSEvent) {

ui/src/app/sections/volume/booster-balance/booster/booster.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class BoosterComponent implements OnInit {
6363
this.ignoreUpdatesDebouncer = setTimeout(() => {
6464
this.getGain()
6565
this.ignoreUpdates = false
66-
}, 500)
66+
}, 1000)
6767
this.boosterService.setGain(gain)
6868
}
6969

0 commit comments

Comments
 (0)