mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-27 09:58:08 +01:00
MainWindow: try to reduce screen flicker when (re)starting a game
This commit is contained in:
parent
ff4b91459e
commit
272867c3ad
1 changed files with 6 additions and 0 deletions
|
@ -382,6 +382,9 @@ void MainWindow::prefsUpdated()
|
||||||
|
|
||||||
void MainWindow::updateForGame(PublicGame *iGame)
|
void MainWindow::updateForGame(PublicGame *iGame)
|
||||||
{
|
{
|
||||||
|
// Try to reduce flicker
|
||||||
|
setUpdatesEnabled(false);
|
||||||
|
|
||||||
if (iGame == NULL)
|
if (iGame == NULL)
|
||||||
{
|
{
|
||||||
m_actionGameSaveAs->setEnabled(false);
|
m_actionGameSaveAs->setEnabled(false);
|
||||||
|
@ -536,6 +539,9 @@ void MainWindow::updateForGame(PublicGame *iGame)
|
||||||
m_scoresWidget, SLOT(refresh()));
|
m_scoresWidget, SLOT(refresh()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Restore visual updates
|
||||||
|
setUpdatesEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue