UI: Temporary hide the "Ask to Connect" flag

This commit is contained in:
Nodir Temirkhodjaev 2023-03-20 11:44:43 +03:00
parent 602175f03f
commit aa228fc683
2 changed files with 4 additions and 0 deletions

View File

@ -425,6 +425,8 @@ void OptionsPage::setupTrafficBox()
ctrl()->setFlagsEdited();
});
m_cbAskToConnect->setVisible(false);
auto filterModeLayout = setupFilterModeLayout();
auto layout = new QVBoxLayout();

View File

@ -356,6 +356,8 @@ void TrayIcon::setupTrayMenu()
addAction(m_menu, QIcon(), QString(), this, SLOT(switchTrayFlag(bool)), true);
addHotKey(m_askToConnectAction, iniUser()->hotKeyAskToConnect());
m_askToConnectAction->setVisible(false);
m_trayMenuAction = addAction(m_menu, QIcon(), QString(), this, SLOT(switchTrayMenu(bool)));
m_trayMenuAction->setVisible(false);