From 710e337d88c38e39baf368e23864e5e9631eec93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20=C5=A0?= Date: Sat, 20 Jan 2024 19:45:26 +0100 Subject: [PATCH] Add option to open apps automatically when they are installed (closes #447) --- extension/src/_locales/en/messages.json | 8 ++++++++ extension/src/sites/install.html | 4 ++++ extension/src/sites/install.js | 6 +++++- native/src/connector/process.rs | 11 ++++++++--- native/src/connector/request.rs | 4 ++++ native/src/console/app.rs | 16 ++++++++++------ native/src/console/site.rs | 13 +++++++++++++ 7 files changed, 52 insertions(+), 10 deletions(-) diff --git a/extension/src/_locales/en/messages.json b/extension/src/_locales/en/messages.json index 3006a631..b151a0f3 100644 --- a/extension/src/_locales/en/messages.json +++ b/extension/src/_locales/en/messages.json @@ -667,6 +667,14 @@ "message": "Disable only if you cannot install this web app with the manifest enabled", "description": "The tooltip for the use manifest checkbox on the web app installation page" }, + "installPageLaunchNowLabel": { + "message": "Launch web app when the installation finishes", + "description": "The label for the launch now checkbox on the web app installation page" + }, + "installPageLaunchNowTooltip": { + "message": "Enable if you want this web app to be launched automatically after the installation", + "description": "The tooltip for the launch now checkbox on the web app installation page" + }, "installPageContentScriptError": { "message": "Failed to access the content script.", "description": "A message that says the extension was not able to access the content script" diff --git a/extension/src/sites/install.html b/extension/src/sites/install.html index 666327dc..03409142 100644 --- a/extension/src/sites/install.html +++ b/extension/src/sites/install.html @@ -59,6 +59,10 @@ +
+ + +