mirror of https://github.com/procxx/kepka.git
requesting unlock before toggle notifications from tray
This commit is contained in:
parent
e211268158
commit
90776073e7
|
@ -302,6 +302,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org
|
||||||
"lng_passcode_enter" = "Enter your local passcode";
|
"lng_passcode_enter" = "Enter your local passcode";
|
||||||
"lng_passcode_submit" = "Submit";
|
"lng_passcode_submit" = "Submit";
|
||||||
"lng_passcode_logout" = "Log out";
|
"lng_passcode_logout" = "Log out";
|
||||||
|
"lng_passcode_need_unblock" = "You need to unlock me first.";
|
||||||
|
|
||||||
"lng_cloud_password_waiting" = "Confirmation link sent to {email}..";
|
"lng_cloud_password_waiting" = "Confirmation link sent to {email}..";
|
||||||
"lng_cloud_password_change" = "Change cloud password";
|
"lng_cloud_password_change" = "Change cloud password";
|
||||||
|
|
|
@ -1182,6 +1182,11 @@ void Window::toggleTray(QSystemTrayIcon::ActivationReason reason) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::toggleDisplayNotifyFromTray() {
|
void Window::toggleDisplayNotifyFromTray() {
|
||||||
|
if (App::passcoded()) {
|
||||||
|
if (!isActive()) showFromTray();
|
||||||
|
showLayer(new InformBox(lang(lng_passcode_need_unblock)));
|
||||||
|
return;
|
||||||
|
}
|
||||||
cSetDesktopNotify(!cDesktopNotify());
|
cSetDesktopNotify(!cDesktopNotify());
|
||||||
if (settings) {
|
if (settings) {
|
||||||
settings->updateDisplayNotify();
|
settings->updateDisplayNotify();
|
||||||
|
|
Loading…
Reference in New Issue