anr: capitalize options

This commit is contained in:
Vaxry
2025-02-18 15:20:00 +00:00
parent 3c1a2e9fca
commit 0137a5f6cd

View File

@@ -126,7 +126,7 @@ void CANRManager::SANRData::runDialog(const std::string& title, const std::strin
makeShared<CProcess>("hyprland-dialog",
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),
"--buttons", "terminate;wait"});
"--buttons", "Terminate;Wait"});
dialogProc = proc;
proc->runSync();
@@ -136,9 +136,9 @@ void CANRManager::SANRData::runDialog(const std::string& title, const std::strin
if (proc->stdOut().empty())
return;
if (proc->stdOut().starts_with("terminate"))
if (proc->stdOut().starts_with("Terminate"))
kill(dialogWmPID, SIGKILL);
if (proc->stdOut().starts_with("wait"))
if (proc->stdOut().starts_with("Wait"))
dialogThreadSaidWait = true;
});
}