mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Qt: do not toggle the screensaver when pausing or playing
This fixes 2 crashes with the pause function. One is when spamming the pause hotkey and the other is to press pause and step hotkeys at the same time. It does disable the screensaver getting disabled when the emulator is running, but paused, though, a better solution would have to be done without introducing these crashes.
This commit is contained in:
@ -513,7 +513,6 @@ void MainWindow::Play(const std::optional<std::string>& savestate_path)
|
||||
if (Core::GetState() == Core::State::Paused)
|
||||
{
|
||||
Core::SetState(Core::State::Running);
|
||||
EnableScreenSaver(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -542,7 +541,6 @@ void MainWindow::Play(const std::optional<std::string>& savestate_path)
|
||||
void MainWindow::Pause()
|
||||
{
|
||||
Core::SetState(Core::State::Paused);
|
||||
EnableScreenSaver(true);
|
||||
}
|
||||
|
||||
void MainWindow::TogglePause()
|
||||
@ -561,6 +559,7 @@ void MainWindow::OnStopComplete()
|
||||
{
|
||||
m_stop_requested = false;
|
||||
HideRenderWidget();
|
||||
EnableScreenSaver(true);
|
||||
|
||||
SetFullScreenResolution(false);
|
||||
|
||||
@ -639,7 +638,6 @@ bool MainWindow::RequestStop()
|
||||
void MainWindow::ForceStop()
|
||||
{
|
||||
Core::Stop();
|
||||
EnableScreenSaver(true);
|
||||
}
|
||||
|
||||
void MainWindow::Reset()
|
||||
|
Reference in New Issue
Block a user