mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Perform UI updates in bulk before/after screenshot
Fixes 0000074
This commit is contained in:
parent
498e15c56b
commit
a2ff7ef95e
@ -1345,10 +1345,12 @@ void MainWindow::on_actionCheck_for_Updates_triggered()
|
||||
bool toolbox_visible = false;
|
||||
void MainWindow::on_action_Screenshot_triggered()
|
||||
{
|
||||
setUpdatesEnabled(false);
|
||||
if (daily)
|
||||
daily->hideSpaceHogs();
|
||||
toolbox_visible = ui->toolBox->isVisible();
|
||||
ui->toolBox->hide();
|
||||
setUpdatesEnabled(true);
|
||||
QTimer::singleShot(250, this, SLOT(DelayedScreenshot()));
|
||||
}
|
||||
|
||||
@ -1381,10 +1383,12 @@ void MainWindow::DelayedScreenshot()
|
||||
} else {
|
||||
Notify(tr("Screenshot saved to file \"%1\"").arg(QDir::toNativeSeparators(a)));
|
||||
}
|
||||
|
||||
setUpdatesEnabled(false);
|
||||
if (daily)
|
||||
daily->showSpaceHogs();
|
||||
ui->toolBox->setVisible(toolbox_visible);
|
||||
|
||||
setUpdatesEnabled(true);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionView_Oximetry_triggered()
|
||||
|
Loading…
Reference in New Issue
Block a user