Skip to content

Commit eeb8d6c

Browse files
authored
hyprscrolling: remove notification on successfull load (#582)
Generating notification on failure only.
1 parent 7f94d2c commit eeb8d6c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hyprscrolling/main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
5151
HyprlandAPI::addConfigValue(PHANDLE, "plugin:hyprscrolling:explicit_column_widths", Hyprlang::STRING{"0.333, 0.5, 0.667, 1.0"});
5252
HyprlandAPI::addLayout(PHANDLE, "scrolling", g_pScrollingLayout.get());
5353

54-
if (success)
55-
HyprlandAPI::addNotification(PHANDLE, "[hyprscrolling] Initialized successfully!", CHyprColor{0.2, 1.0, 0.2, 1.0}, 5000);
56-
else {
54+
if (!success) {
5755
HyprlandAPI::addNotification(PHANDLE, "[hyprscrolling] Failure in initialization: failed to register dispatchers", CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
5856
throw std::runtime_error("[hs] Dispatchers failed");
5957
}

0 commit comments

Comments
 (0)