mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2026-05-05 18:27:59 +02:00
hyprscrolling: remove notification on successfull load
Generating notification on failure only.
This commit is contained in:
parent
64b7c2dff7
commit
2c0e0b2a2c
1 changed files with 1 additions and 3 deletions
|
|
@ -51,9 +51,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
|
|||
HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprscrolling:explicit_column_widths", Hyprlang::STRING{"0.333, 0.5, 0.667, 1.0"});
|
||||
HyprlandAPI::addLayout(PHANDLE, "scrolling", g_pScrollingLayout.get());
|
||||
|
||||
if (success)
|
||||
HyprlandAPI::addNotification(PHANDLE, "[hyprscrolling] Initialized successfully!", CHyprColor{0.2, 1.0, 0.2, 1.0}, 5000);
|
||||
else {
|
||||
if (!success) {
|
||||
HyprlandAPI::addNotification(PHANDLE, "[hyprscrolling] Failure in initialization: failed to register dispatchers", CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
|
||||
throw std::runtime_error("[hs] Dispatchers failed");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue