mirror of
https://github.com/tnodir/fort
synced 2024-11-15 16:46:34 +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 = ControlUtil::createLabel();
|
||||||
m_iconDriver->setScaledContents(true);
|
m_iconDriver->setScaledContents(true);
|
||||||
m_iconDriver->setMaximumSize(16, 16);
|
m_iconDriver->setMaximumSize(16, 16);
|
||||||
|
m_iconDriver->setPixmap(IconCache::file(":/icons/puzzle.png"));
|
||||||
|
|
||||||
const auto refreshDriverIcon = [&] {
|
const auto refreshDriverIcon = [&] {
|
||||||
m_iconDriver->setEnabled(driverManager()->isDeviceOpened());
|
m_iconDriver->setEnabled(driverManager()->isDeviceOpened());
|
||||||
m_iconDriver->setPixmap(IconCache::file(":/icons/puzzle.png"));
|
|
||||||
};
|
};
|
||||||
|
|
||||||
refreshDriverIcon();
|
refreshDriverIcon();
|
||||||
|
@ -104,8 +104,6 @@ void FortManager::initialize()
|
|||||||
setupTaskManager();
|
setupTaskManager();
|
||||||
|
|
||||||
loadConf();
|
loadConf();
|
||||||
|
|
||||||
connect(qApp, &QCoreApplication::aboutToQuit, this, &FortManager::closeUi);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FirewallConf *FortManager::conf() const
|
FirewallConf *FortManager::conf() const
|
||||||
@ -299,6 +297,8 @@ void FortManager::setupTrayIcon()
|
|||||||
connect(confManager(), &ConfManager::confSaved, m_trayIcon, &TrayIcon::updateTrayMenu);
|
connect(confManager(), &ConfManager::confSaved, m_trayIcon, &TrayIcon::updateTrayMenu);
|
||||||
connect(confManager(), &ConfManager::alertedAppAdded, m_trayIcon,
|
connect(confManager(), &ConfManager::alertedAppAdded, m_trayIcon,
|
||||||
[&] { m_trayIcon->updateTrayIcon(true); });
|
[&] { m_trayIcon->updateTrayIcon(true); });
|
||||||
|
|
||||||
|
connect(qApp, &QCoreApplication::aboutToQuit, this, &FortManager::closeUi);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FortManager::setupProgramsWindow()
|
void FortManager::setupProgramsWindow()
|
||||||
|
Loading…
Reference in New Issue
Block a user