Fixed empty arguments problem with no monitor specified

This commit is contained in:
madebylucke 2025-09-28 12:11:08 +02:00
parent 6471121b1e
commit 72408b2944

View file

@ -7,7 +7,7 @@ static Hyprlang::CParseResult handleWallpaper(const char* C, const char* V) {
const std::string COMMAND = C;
const std::string VALUE = V;
Hyprlang::CParseResult result;
Hyprutils::String::CVarList args(VALUE, 3, ',', true);
Hyprutils::String::CVarList args(VALUE, 3, ',', false);
if (args.size() < 2) {
result.setError("wallpaper failed (syntax)");
@ -160,7 +160,7 @@ static Hyprlang::CParseResult handleUnload(const char* C, const char* V) {
static Hyprlang::CParseResult handleReload(const char* C, const char* V) {
const std::string COMMAND = C;
const std::string VALUE = V;
Hyprutils::String::CVarList args(VALUE, 3, ',', true);
Hyprutils::String::CVarList args(VALUE, 3, ',', false);
if (args.size() < 2) {
Hyprlang::CParseResult result;