mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
anr: capitalize options
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user