mirror of
https://github.com/mupen64plus/mupen64plus-ui-python.git
synced 2025-04-02 10:51:53 -04:00
ActivateWindow to gain input focus
This commit is contained in:
parent
76ebf56666
commit
c96d16b6d6
2 changed files with 3 additions and 1 deletions
|
@ -268,6 +268,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||
self.stack.setCurrentIndex(1)
|
||||
elif mode == M64P_RENDER_VULKAN:
|
||||
self.stack.setCurrentIndex(2)
|
||||
self.stack.currentWidget().activateWindow()
|
||||
|
||||
def on_vidext_set_mode(self, context):
|
||||
context.doneCurrent()
|
||||
|
@ -289,6 +290,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||
if state == Qt.ApplicationState.ApplicationInactive:
|
||||
self.worker.core.pause()
|
||||
elif state == Qt.ApplicationState.ApplicationActive:
|
||||
self.stack.currentWidget().activateWindow()
|
||||
self.worker.core.resume()
|
||||
|
||||
def on_toggle_fs(self):
|
||||
|
|
|
@ -249,7 +249,7 @@ class Settings(QDialog, Ui_Settings):
|
|||
bool(self.get_int_safe("enable_vidext", 1)))
|
||||
|
||||
self.checkDisableScreenSaver.setChecked(bool(self.get_int_safe("disable_screensaver", 1)))
|
||||
self.checkPauseOnFocusLoss.setChecked(bool(self.get_int_safe("pause_on_focus_loss", 1)))
|
||||
self.checkPauseOnFocusLoss.setChecked(bool(self.get_int_safe("pause_on_focus_loss", 0)))
|
||||
|
||||
def set_core(self):
|
||||
self.core.config.open_section("Core")
|
||||
|
|
Loading…
Add table
Reference in a new issue