hyprscrolling: remove notification on successfull load

Generating notification on failure only.
This commit is contained in:
KAGEYAM4 2026-01-01 15:29:19 +05:30 committed by GitHub
parent 64b7c2dff7
commit 2c0e0b2a2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");
}