UI: Options: Schedule: Open Programs on double-click of "Purge Obsolete" task

This commit is contained in:
Nodir Temirkhodjaev 2024-02-07 16:05:10 +03:00
parent e20a28fa61
commit cccf9021f3

View File

@ -384,12 +384,17 @@ void FortManager::setupTaskManager()
&ConfZoneManager::updateDriverZones);
connect(taskManager, &TaskManager::taskDoubleClicked, this, [&](qint8 taskType) {
auto windowManager = IoC<WindowManager>();
switch (taskType) {
case TaskInfo::UpdateChecker: {
IoC<WindowManager>()->showHomeWindowAbout();
windowManager->showHomeWindowAbout();
} break;
case TaskInfo::ZoneDownloader: {
IoC<WindowManager>()->showZonesWindow();
windowManager->showZonesWindow();
} break;
case TaskInfo::AppPurger: {
windowManager->showProgramsWindow();
} break;
}
});