Merge pull request #6879 from aldelaro5/qt-no-screensaver-pause-play
Qt: do not toggle the screensaver when pausing or playing
This commit is contained in:
commit
f51eba9e79
|
@ -513,7 +513,6 @@ void MainWindow::Play(const std::optional<std::string>& savestate_path)
|
||||||
if (Core::GetState() == Core::State::Paused)
|
if (Core::GetState() == Core::State::Paused)
|
||||||
{
|
{
|
||||||
Core::SetState(Core::State::Running);
|
Core::SetState(Core::State::Running);
|
||||||
EnableScreenSaver(false);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -542,7 +541,6 @@ void MainWindow::Play(const std::optional<std::string>& savestate_path)
|
||||||
void MainWindow::Pause()
|
void MainWindow::Pause()
|
||||||
{
|
{
|
||||||
Core::SetState(Core::State::Paused);
|
Core::SetState(Core::State::Paused);
|
||||||
EnableScreenSaver(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::TogglePause()
|
void MainWindow::TogglePause()
|
||||||
|
@ -561,6 +559,7 @@ void MainWindow::OnStopComplete()
|
||||||
{
|
{
|
||||||
m_stop_requested = false;
|
m_stop_requested = false;
|
||||||
HideRenderWidget();
|
HideRenderWidget();
|
||||||
|
EnableScreenSaver(true);
|
||||||
|
|
||||||
SetFullScreenResolution(false);
|
SetFullScreenResolution(false);
|
||||||
|
|
||||||
|
@ -639,7 +638,6 @@ bool MainWindow::RequestStop()
|
||||||
void MainWindow::ForceStop()
|
void MainWindow::ForceStop()
|
||||||
{
|
{
|
||||||
Core::Stop();
|
Core::Stop();
|
||||||
EnableScreenSaver(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::Reset()
|
void MainWindow::Reset()
|
||||||
|
|
Loading…
Reference in New Issue