qt: remove applet resume event
This commit is contained in:
parent
7a57cf1a03
commit
b199f77abb
@ -1461,7 +1461,6 @@ void GMainWindow::OnAppFocusStateChanged(Qt::ApplicationState state) {
|
|||||||
OnPauseGame();
|
OnPauseGame();
|
||||||
} else if (!emu_thread->IsRunning() && auto_paused && state == Qt::ApplicationActive) {
|
} else if (!emu_thread->IsRunning() && auto_paused && state == Qt::ApplicationActive) {
|
||||||
auto_paused = false;
|
auto_paused = false;
|
||||||
RequestGameResume();
|
|
||||||
OnStartGame();
|
OnStartGame();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1702,7 +1701,6 @@ void GMainWindow::OnPrepareForSleep(bool prepare_sleep) {
|
|||||||
} else {
|
} else {
|
||||||
if (!emu_thread->IsRunning() && auto_paused) {
|
if (!emu_thread->IsRunning() && auto_paused) {
|
||||||
auto_paused = false;
|
auto_paused = false;
|
||||||
RequestGameResume();
|
|
||||||
OnStartGame();
|
OnStartGame();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3457,7 +3455,6 @@ void GMainWindow::OnPauseContinueGame() {
|
|||||||
if (emu_thread->IsRunning()) {
|
if (emu_thread->IsRunning()) {
|
||||||
OnPauseGame();
|
OnPauseGame();
|
||||||
} else {
|
} else {
|
||||||
RequestGameResume();
|
|
||||||
OnStartGame();
|
OnStartGame();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5013,10 +5010,6 @@ void GMainWindow::RequestGameExit() {
|
|||||||
system->GetAppletManager().RequestExit();
|
system->GetAppletManager().RequestExit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::RequestGameResume() {
|
|
||||||
system->GetAppletManager().RequestResume();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GMainWindow::filterBarSetChecked(bool state) {
|
void GMainWindow::filterBarSetChecked(bool state) {
|
||||||
ui->action_Show_Filter_Bar->setChecked(state);
|
ui->action_Show_Filter_Bar->setChecked(state);
|
||||||
emit(OnToggleFilterBar());
|
emit(OnToggleFilterBar());
|
||||||
|
@ -310,7 +310,6 @@ private:
|
|||||||
bool ConfirmChangeGame();
|
bool ConfirmChangeGame();
|
||||||
bool ConfirmForceLockedExit();
|
bool ConfirmForceLockedExit();
|
||||||
void RequestGameExit();
|
void RequestGameExit();
|
||||||
void RequestGameResume();
|
|
||||||
void changeEvent(QEvent* event) override;
|
void changeEvent(QEvent* event) override;
|
||||||
void closeEvent(QCloseEvent* event) override;
|
void closeEvent(QCloseEvent* event) override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user