diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 656cf415c9..cdec73e51d 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1,4 +1,14 @@ { + "options_receive_app_notifications": { + "message": "Receive desktop notification when application updates" + }, + "options_improve_configurator": { + "message": "Improve Baseflight - Configurator by sending anonymous usage data to the developer team" + }, + "options_back": { + "message": "Leave Options" + }, + "notifications_app_just_updated_to_version": { "message": "Application just updated to version: $1" }, diff --git a/background.js b/background.js index bca1dde458..011cf91329 100644 --- a/background.js +++ b/background.js @@ -44,18 +44,22 @@ chrome.app.runtime.onLaunched.addListener(function() { chrome.runtime.onInstalled.addListener(function(details) { if (details.reason == 'update') { - var manifest = chrome.runtime.getManifest(); - var options = { - priority: 0, - type: 'basic', - title: manifest.name, - message: chrome.i18n.getMessage('notifications_app_just_updated_to_version', [manifest.version]), - iconUrl: '/images/icon_128.png', - buttons: [{'title': chrome.i18n.getMessage('notifications_click_here_to_start_app')}] - }; + chrome.storage.local.get('update_notify', function(result) { + if (typeof result.update_notify === 'undefined' || result.update_notify) { + var manifest = chrome.runtime.getManifest(); + var options = { + priority: 0, + type: 'basic', + title: manifest.name, + message: chrome.i18n.getMessage('notifications_app_just_updated_to_version', [manifest.version]), + iconUrl: '/images/icon_128.png', + buttons: [{'title': chrome.i18n.getMessage('notifications_click_here_to_start_app')}] + }; - chrome.notifications.create('baseflight_update', options, function(notificationId) { - // empty + chrome.notifications.create('baseflight_update', options, function(notificationId) { + // empty + }); + } }); } }); diff --git a/main.css b/main.css index a65779ceff..829e292120 100644 --- a/main.css +++ b/main.css @@ -172,8 +172,8 @@ input[type="number"]::-webkit-inner-spin-button { height: 15px; padding: 5px; - padding-left: 12px; - padding-right: 12px; + padding-left: 8px; + padding-right: 8px; background-color: #d0d0d0; } @@ -220,4 +220,13 @@ input[type="number"]::-webkit-inner-spin-button { border-top: 1px solid #7d7d79; background-color: #bfbeb5; -} \ No newline at end of file +} + + #status-bar div { + float: left; + + padding-right: 10px; + margin-right: 10px; + + border-right: 1px solid #7d7d79; + } \ No newline at end of file diff --git a/main.html b/main.html index 5e3edaffdb..319b452ccf 100644 --- a/main.html +++ b/main.html @@ -16,6 +16,7 @@ + @@ -44,6 +45,7 @@ +
@@ -104,6 +106,7 @@