Исправлен режим блокировки gui без root

pull/76/head
Igor Belitskiy 3 years ago
parent d17d7bad1b
commit 159b073c20

@ -75,6 +75,10 @@ void MainWindow::settings() {
this->download_local_cfg(); this->download_local_cfg();
} }
else { else {
lblHW->set_sensitive(false);
cbHw->set_sensitive(false);
boxButton->set_sensitive(false);
boxSave->set_sensitive(false);
btnDownload->set_sensitive(false); btnDownload->set_sensitive(false);
numTimeHrs->set_sensitive(false); numTimeHrs->set_sensitive(false);
numTimeMin->set_sensitive(false); numTimeMin->set_sensitive(false);
@ -398,23 +402,23 @@ void MainWindow::info_warning_error(int mess) {
warning_info = 0; warning_info = 0;
string mess_error = ""; string mess_error = "";
if (mess == 0) { if (mess == 0) {
mess_error = _("Local configuration reading error") + cmd_error; mess_error = string(_("Local configuration reading error")) + " " + cmd_error;
lblWarning->set_text(mess_error); lblWarning->set_text(mess_error);
} }
else if (mess == 1) { else if (mess == 1) {
mess_error = _("Global configuration read error") + cmd_error; mess_error = string(_("Global configuration read error")) + " " + cmd_error;
lblWarning->set_text(mess_error); lblWarning->set_text(mess_error);
} }
else if (mess == 2) { else if (mess == 2) {
mess_error = _("Local configuration write error") + cmd_error; mess_error = string(_("Local configuration write error")) + " " + cmd_error;
lblWarning->set_text(mess_error); lblWarning->set_text(mess_error);
} }
else if (mess == 3) { else if (mess == 3) {
mess_error = _("Global configuration write error") + cmd_error; mess_error = string(_("Global configuration write error")) + " " + cmd_error;
lblWarning->set_text(mess_error); lblWarning->set_text(mess_error);
} }
else if (mess == 4) { else if (mess == 4) {
mess_error = _("Error saved local and global configuration") + cmd_error; mess_error = string(_("Error saved local and global configuration")) + " " + cmd_error;
lblWarning->set_text(mess_error); lblWarning->set_text(mess_error);
} }
cmd_error = ""; cmd_error = "";

Loading…
Cancel
Save