mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 17:57:51 +00:00
Support logout of a secondary account.
This commit is contained in:
@@ -756,10 +756,10 @@ void MainWindow::createGlobalMenu() {
|
||||
|
||||
auto file = psMainMenu->addMenu(tr::lng_mac_menu_file(tr::now));
|
||||
|
||||
psLogout = file->addAction(
|
||||
tr::lng_mac_menu_logout(tr::now),
|
||||
App::wnd(),
|
||||
SLOT(onLogout()));
|
||||
psLogout = file->addAction(tr::lng_mac_menu_logout(tr::now));
|
||||
connect(psLogout, &QAction::triggered, psLogout, [] {
|
||||
if (App::wnd()) App::wnd()->showLogoutConfirmation();
|
||||
});
|
||||
|
||||
auto quit = file->addAction(
|
||||
tr::lng_mac_menu_quit_telegram(tr::now, lt_telegram, qsl("Telegram")),
|
||||
|
||||
Reference in New Issue
Block a user