UI: ConfAppManager: Add "Kill Process" scheduling

This commit is contained in:
Nodir Temirkhodjaev 2024-02-02 12:34:56 +03:00
parent ee5005a4e3
commit dc6df25dc1
2 changed files with 4 additions and 2 deletions

View File

@ -536,8 +536,8 @@ void ConfAppManager::updateAppEndTimes()
if (app.scheduleAction == App::ScheduleRemove) {
appIdListToRemove.append(app.appId);
} else {
app.blocked = (app.scheduleAction == App::ScheduleBlock);
app.killProcess = false;
app.blocked = (app.scheduleAction != App::ScheduleAllow);
app.killProcess = (app.scheduleAction == App::ScheduleKillProcess);
app.scheduleTime = {};
updateApp(app);

View File

@ -52,6 +52,8 @@ QString appScheduleIconPath(const AppRow &appRow)
return ":/icons/accept.png";
case App::ScheduleRemove:
return ":/icons/delete.png";
case App::ScheduleKillProcess:
return ":/icons/scull.png";
}
return {};