Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only notify if something fails - hyprpm reload -n #8101

Open
KAGEYAM4 opened this issue Oct 13, 2024 · 0 comments
Open

Only notify if something fails - hyprpm reload -n #8101

KAGEYAM4 opened this issue Oct 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@KAGEYAM4
Copy link

KAGEYAM4 commented Oct 13, 2024

Description

In the --help it says --notify | -n → Send a hyprland notification for important events (e.g. load fail) but it's also generating on success.

image

} else if (command[0] == "reload") {
auto ret = g_pPluginManager->ensurePluginsLoadState();
if (ret != LOADSTATE_OK && notify) {
switch (ret) {
case LOADSTATE_FAIL:
case LOADSTATE_PARTIAL_FAIL: g_pPluginManager->notify(ICON_ERROR, 0, 10000, "[hyprpm] Failed to load plugins"); break;
case LOADSTATE_HEADERS_OUTDATED:
g_pPluginManager->notify(ICON_ERROR, 0, 10000, "[hyprpm] Failed to load plugins: Outdated headers. Please run hyprpm update manually.");
break;
default: break;
}
} else if (notify) {
g_pPluginManager->notify(ICON_OK, 0, 4000, "[hyprpm] Loaded plugins");
}

@KAGEYAM4 KAGEYAM4 added the enhancement New feature or request label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant