mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-17 03:05:57 +01:00
parent
9e35656244
commit
e72ae6b25f
1 changed files with 3 additions and 3 deletions
|
@ -987,9 +987,9 @@ std::string dispatchKeyword(eHyprCtlOutputFormat format, std::string in) {
|
|||
const auto COMMAND = in.substr(0, secondSpacePos);
|
||||
const auto VALUE = in.substr(secondSpacePos + 1);
|
||||
|
||||
// If either COMMAND or VALUE is empty, handle accordingly
|
||||
if (COMMAND.empty() || VALUE.empty())
|
||||
return "Invalid input: command or value is empty";
|
||||
// If COMMAND is empty, handle accordingly
|
||||
if (COMMAND.empty())
|
||||
return "Invalid input: command is empty";
|
||||
|
||||
std::string retval = g_pConfigManager->parseKeyword(COMMAND, VALUE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue