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) { if (app.scheduleAction == App::ScheduleRemove) {
appIdListToRemove.append(app.appId); appIdListToRemove.append(app.appId);
} else { } else {
app.blocked = (app.scheduleAction == App::ScheduleBlock); app.blocked = (app.scheduleAction != App::ScheduleAllow);
app.killProcess = false; app.killProcess = (app.scheduleAction == App::ScheduleKillProcess);
app.scheduleTime = {}; app.scheduleTime = {};
updateApp(app); updateApp(app);

View File

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