diff options
author | Simon Rettberg | 2019-05-14 17:10:14 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-05-14 17:10:14 +0200 |
commit | 5f93cb6aa4fc433d37ee251146a426da57dffa83 (patch) | |
tree | 1424fbe6be4c33ebea7fa971cf32a62a288ab977 /src/dialog.cpp | |
parent | introduce '--insecure' option ... (diff) | |
download | vmchooser2-5f93cb6aa4fc433d37ee251146a426da57dffa83.tar.gz vmchooser2-5f93cb6aa4fc433d37ee251146a426da57dffa83.tar.xz vmchooser2-5f93cb6aa4fc433d37ee251146a426da57dffa83.zip |
Add 'disable screensaver' checkbox
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r-- | src/dialog.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp index fb6b95e..10ebe22 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -145,6 +145,12 @@ void Dialog::on_treeView_doubleClicked(const QModelIndex& index) setenv("VMCHOOSER_ADMIN_MODE", "FALSE", 1); } + if (ui->chkNoScreenSaver->isChecked()) { + setenv("VMCHOOSER_DISABLE_SCREENSAVER", "TRUE", 1); + } else { + setenv("VMCHOOSER_DISABLE_SCREENSAVER", "FALSE", 1); + } + // Run session if (s->run()) { // Run session start script if the session could be initialized successfully @@ -419,7 +425,7 @@ void Dialog::onCenterTimer() { if (autoQuit_ == 0) { QCoreApplication::instance()->exit(0); } else if (autoQuit_ < 60) { - ui->lblAutoQuit->setText(this->trUtf8("Auto logout in %1").arg(autoQuit_)); + ui->lblAutoQuit->setText(trUtf8("Auto logout in %1").arg(autoQuit_)); ui->lblAutoQuit->show(); } else if (ui->lblAutoQuit->isVisible()) { ui->lblAutoQuit->hide(); |