mirror of
https://github.com/tnodir/fort
synced 2024-11-15 16:15:50 +00:00
UI: Minor fixes.
This commit is contained in:
parent
e359f1ec45
commit
578a34837c
@ -434,10 +434,10 @@ void OptionsPage::setupDriverIcon()
|
||||
m_iconDriver = ControlUtil::createLabel();
|
||||
m_iconDriver->setScaledContents(true);
|
||||
m_iconDriver->setMaximumSize(16, 16);
|
||||
m_iconDriver->setPixmap(IconCache::file(":/icons/puzzle.png"));
|
||||
|
||||
const auto refreshDriverIcon = [&] {
|
||||
m_iconDriver->setEnabled(driverManager()->isDeviceOpened());
|
||||
m_iconDriver->setPixmap(IconCache::file(":/icons/puzzle.png"));
|
||||
};
|
||||
|
||||
refreshDriverIcon();
|
||||
|
@ -104,8 +104,6 @@ void FortManager::initialize()
|
||||
setupTaskManager();
|
||||
|
||||
loadConf();
|
||||
|
||||
connect(qApp, &QCoreApplication::aboutToQuit, this, &FortManager::closeUi);
|
||||
}
|
||||
|
||||
FirewallConf *FortManager::conf() const
|
||||
@ -299,6 +297,8 @@ void FortManager::setupTrayIcon()
|
||||
connect(confManager(), &ConfManager::confSaved, m_trayIcon, &TrayIcon::updateTrayMenu);
|
||||
connect(confManager(), &ConfManager::alertedAppAdded, m_trayIcon,
|
||||
[&] { m_trayIcon->updateTrayIcon(true); });
|
||||
|
||||
connect(qApp, &QCoreApplication::aboutToQuit, this, &FortManager::closeUi);
|
||||
}
|
||||
|
||||
void FortManager::setupProgramsWindow()
|
||||
|
Loading…
Reference in New Issue
Block a user