mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2026-05-08 19:58:01 +02:00
fix: don't leave configuredWidths empty.
This commit is contained in:
parent
a084d66d7d
commit
0705c61530
1 changed files with 2 additions and 0 deletions
|
|
@ -483,6 +483,8 @@ void CScrollingLayout::onEnable() {
|
|||
m_config.configuredWidths.emplace_back(std::stof(std::string{w}));
|
||||
} catch (...) { Log::logger->log(Log::ERR, "scrolling: Failed to parse width {} as float", w); }
|
||||
}
|
||||
if (m_config.configuredWidths.empty())
|
||||
m_config.configuredWidths = {0.333, 0.5, 0.667, 1.0};
|
||||
});
|
||||
|
||||
m_focusCallback = g_pHookSystem->hookDynamic("activeWindow", [this](void* hk, SCallbackInfo& info, std::any param) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue