1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 04:40:20 +01:00

Added showPresetsOnInstallation

Fixes #656
This commit is contained in:
kkapsner 2023-05-29 14:05:03 +02:00
parent 114b109340
commit fb1311a842
2 changed files with 10 additions and 2 deletions

View File

@ -170,8 +170,12 @@
case "install":
logging.message("CanvasBlocker installed");
openOptions(details.reason);
browser.tabs.create({
url: extension.getURL("options/presets.html?notice=" + details.reason)
settings.onloaded(function(){
if (settings.showPresetsOnInstallation){
browser.tabs.create({
url: extension.getURL("options/presets.html?notice=" + details.reason)
});
}
});
break;
case "update":

View File

@ -414,6 +414,10 @@
defaultValue: "auto",
options: ["auto", "default", "light", "dark", "colorful"/*, "none"*/]
},
{
name: "showPresetsOnInstallation",
defaultValue: true
},
{
name: "dontShowOptionsOnUpdate",
defaultValue: false