Fix macOS main menu items.

This commit is contained in:
John Preston 2018-12-17 10:45:48 +04:00
parent 89e8f0ccc3
commit 8b0e54a95c
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ void MainWindow::updateGlobalMenuHook() {
}
App::wnd()->updateIsActive(0);
const auto logged = AuthSession::Exists();
const auto locked = !Messenger::Instance().locked();
const auto locked = Messenger::Instance().locked();
const auto inactive = !logged || locked;
const auto support = logged && Auth().supportMode();
_forceDisabled(psLogout, !logged && !locked);