Revert "UI: Revert disabled "Ask to Connect" flag"

This commit is contained in:
Nodir Temirkhodjaev 2023-03-24 19:43:24 +03:00
parent 5ea5e84590
commit 849106e793
3 changed files with 5 additions and 1 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);

View File

@ -30,7 +30,7 @@ void writeConfFlags(const FirewallConf &conf, PFORT_CONF_FLAGS confFlags)
confFlags->filter_locals = conf.filterLocals();
confFlags->stop_traffic = conf.stopTraffic();
confFlags->stop_inet_traffic = conf.stopInetTraffic();
confFlags->ask_to_connect = conf.askToConnect();
confFlags->ask_to_connect = 0; // conf.askToConnect();
confFlags->allow_all_new = conf.allowAllNew();
confFlags->app_block_all = conf.appBlockAll();