From 5f93cb6aa4fc433d37ee251146a426da57dffa83 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 14 May 2019 17:10:14 +0200 Subject: Add 'disable screensaver' checkbox --- src/dialog.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/dialog.cpp') 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(); -- cgit v1.2.3-55-g7522