mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 23:46:00 +01:00
hyprctl: Fix incorrect invalid fontsize kwarg response (#5013)
This commit is contained in:
parent
6c4e2489a0
commit
ceecdd0fd5
1 changed files with 1 additions and 1 deletions
|
@ -1459,7 +1459,7 @@ std::string dispatchNotify(eHyprCtlOutputFormat format, std::string request) {
|
|||
|
||||
size_t msgidx = 4;
|
||||
float fontsize = 13.f;
|
||||
if (vars[msgidx].length() > 9 && vars[msgidx].compare(0, 10, "fontsize:")) {
|
||||
if (vars[msgidx].length() > 9 && vars[msgidx].compare(0, 9, "fontsize:") == 0) {
|
||||
const auto FONTSIZE = vars[msgidx].substr(9);
|
||||
|
||||
if (!isNumber(FONTSIZE, true))
|
||||
|
|
Loading…
Reference in a new issue