mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-15 20:13:49 -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",
|
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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user