mirror of
https://github.com/hyprwm/hyprland-qt-support.git
synced 2025-05-13 05:30:35 +01:00
style: ensure defaults are set correctly if config file couldn't load
This commit is contained in:
parent
8564f0488e
commit
b962066864
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ namespace hyprqml::style {
|
||||||
roundness = std::any_cast<Hyprlang::INT>(config.getConfigValue("roundness"));
|
roundness = std::any_cast<Hyprlang::INT>(config.getConfigValue("roundness"));
|
||||||
borderWidth = std::any_cast<Hyprlang::INT>(config.getConfigValue("border_width"));
|
borderWidth = std::any_cast<Hyprlang::INT>(config.getConfigValue("border_width"));
|
||||||
reduceMotion = std::any_cast<Hyprlang::INT>(config.getConfigValue("reduce_motion"));
|
reduceMotion = std::any_cast<Hyprlang::INT>(config.getConfigValue("reduce_motion"));
|
||||||
} catch (...) { return; }
|
} catch (...) {} // NOLINT
|
||||||
|
|
||||||
if (roundness < 0 || roundness > 3) {
|
if (roundness < 0 || roundness > 3) {
|
||||||
qCWarning(logStyle) << "Invalid value" << roundness
|
qCWarning(logStyle) << "Invalid value" << roundness
|
||||||
|
|
Loading…
Reference in a new issue