mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-08 14:38:30 -04:00
* feat(settings): add option to suppress config reload toast (#2730) Add a toggle in Settings → Compositor Layout to disable the 'config reloaded' toast for Niri and MangoWC compositors. Session setting showConfigReloadToast defaults to true. * chore: update settings search index for config reload toast * refactor(settings): rename 'Compositor Notifications' to 'Compositor Toasts' * fix(settings): reuse existing I18n.tr('Notifications') translation
This commit is contained in:
@@ -473,7 +473,7 @@ Singleton {
|
||||
function reloadConfig(showToast, suppressWatch) {
|
||||
if (!CompositorService.isMango || !root.available)
|
||||
return;
|
||||
const shouldShowToast = showToast !== false;
|
||||
const shouldShowToast = showToast !== false && SessionData.showConfigReloadToast;
|
||||
const shouldSuppressWatch = suppressWatch !== false;
|
||||
if (shouldSuppressWatch)
|
||||
suppressWatchedConfigReloads(1500);
|
||||
|
||||
@@ -633,7 +633,7 @@ Singleton {
|
||||
configGenerationAction.schedule();
|
||||
configReloaded();
|
||||
|
||||
if (hasInitialConnection && !suppressConfigToast && !suppressNextConfigToast && !matugenSuppression) {
|
||||
if (hasInitialConnection && !suppressConfigToast && !suppressNextConfigToast && !matugenSuppression && SessionData.showConfigReloadToast) {
|
||||
ToastService.showInfo(I18n.tr("niri: config reloaded"), "", "", "niri-config");
|
||||
} else if (suppressNextConfigToast) {
|
||||
suppressNextConfigToast = false;
|
||||
|
||||
Reference in New Issue
Block a user