only showing notification when changing setting manually

This commit is contained in:
Miodec 2022-05-11 14:22:41 +02:00
parent 603dde93f8
commit c1f32bf5a6

View file

@ -559,8 +559,10 @@ export function setEnableAds(
}
config.enableAds = "off";
saveToLocalStorage("enableAds", nosave);
Notifications.add("Ads have been temporarily disabled", 0);
if (!nosave) {
saveToLocalStorage("enableAds", nosave);
Notifications.add("Ads have been temporarily disabled", 0);
}
return true;
// config.enableAds = val;