mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:06:08 +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) {
|
||||
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);
|
||||
|
@ -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 {};
|
||||
|
Loading…
Reference in New Issue
Block a user