mirror of
https://github.com/tnodir/fort
synced 2024-11-15 11:45:09 +00:00
UI: ConfAppManager: Add "Kill Process" scheduling
This commit is contained in:
parent
ee5005a4e3
commit
dc6df25dc1
@ -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);
|
||||||
|
@ -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 {};
|
||||||
|
Loading…
Reference in New Issue
Block a user