diff --git a/web-launcher/launcher.luau b/web-launcher/launcher.luau index c335315..63c5dce 100644 --- a/web-launcher/launcher.luau +++ b/web-launcher/launcher.luau @@ -85,5 +85,7 @@ end function onActivate(id) noctalia.runAsync("xdg-open '" .. id .. "'") - noctalia.notify("Websites", "Opening " .. id) + if noctalia.getConfig("notify") then + noctalia.notify("Websites", "Opening " .. id) + end end diff --git a/web-launcher/plugin.toml b/web-launcher/plugin.toml index f791e4b..2790c49 100644 --- a/web-launcher/plugin.toml +++ b/web-launcher/plugin.toml @@ -26,3 +26,10 @@ default = [ "YouTube|https://youtube.com", "Gmail|https://mail.google.com", ] + +[[setting]] +key = "notify" +type = "bool" +label_key = "settings.notify.label" +description_key = "settings.notify.description" +default = true diff --git a/web-launcher/translations/en.json b/web-launcher/translations/en.json index 66d655e..a64023c 100644 --- a/web-launcher/translations/en.json +++ b/web-launcher/translations/en.json @@ -1,8 +1,12 @@ { - "settings": { - "links": { - "label": "Links", - "description": "Format: Name|https://url" + "settings": { + "links": { + "label": "Links", + "description": "Format: Name|https://url" + }, + "notify": { + "label": "Notify", + "description": "Notify when opening link." + } } - } }