anr: capitalize options
This commit is contained in:
parent
3c1a2e9fca
commit
0137a5f6cd
1 changed files with 3 additions and 3 deletions
|
|
@ -126,7 +126,7 @@ void CANRManager::SANRData::runDialog(const std::string& title, const std::strin
|
||||||
makeShared<CProcess>("hyprland-dialog",
|
makeShared<CProcess>("hyprland-dialog",
|
||||||
std::vector<std::string>{"--title", title, "--text",
|
std::vector<std::string>{"--title", title, "--text",
|
||||||
std::format("Application {} with class of {} is not responding.\nWhat do you want to do with it?", appName, appClass),
|
std::format("Application {} with class of {} is not responding.\nWhat do you want to do with it?", appName, appClass),
|
||||||
"--buttons", "terminate;wait"});
|
"--buttons", "Terminate;Wait"});
|
||||||
|
|
||||||
dialogProc = proc;
|
dialogProc = proc;
|
||||||
proc->runSync();
|
proc->runSync();
|
||||||
|
|
@ -136,9 +136,9 @@ void CANRManager::SANRData::runDialog(const std::string& title, const std::strin
|
||||||
if (proc->stdOut().empty())
|
if (proc->stdOut().empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (proc->stdOut().starts_with("terminate"))
|
if (proc->stdOut().starts_with("Terminate"))
|
||||||
kill(dialogWmPID, SIGKILL);
|
kill(dialogWmPID, SIGKILL);
|
||||||
if (proc->stdOut().starts_with("wait"))
|
if (proc->stdOut().starts_with("Wait"))
|
||||||
dialogThreadSaidWait = true;
|
dialogThreadSaidWait = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue