diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 41649f0954..20bc9f876d 100755
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -56,6 +56,13 @@
"message": "Configuration migration complete, migrations applied: $1"
},
+ "tabFirmwareFlasher": {
+ "message": "Firmware Flasher"
+ },
+ "tabLanding": {
+ "message": "Welcome"
+ },
+
"tabSetup": {
"message": "Setup"
},
@@ -126,6 +133,9 @@
"tabSwitchConnectionRequired": {
"message": "You need to connect before you can view any of the tabs."
},
+ "tabSwitchWaitForOperation": {
+ "message": "You can't do this right now, please wait for current operation to finish ..."
+ },
"tabSwitchUpgradeRequired": {
"message": "You need to upgrade your firmware before you can view any of the tabs."
@@ -196,7 +206,7 @@
"message": "Request Optional Permissions"
},
"defaultWelcomeText": {
- "message": "Welcome to Cleanflight - Configurator, utility designed to simplify updating, configuring and tuning of your flight controller.
Application supports hardware that run cleanflight (sparky, cc3d, acro naze, naze, afromini, flip32, flip32+, cjmcu, chebuzz f3, stm32f3discovery, naze32pro, etc)
The firmware source code can be downloaded from here
The newest binary firmware image is available here
Latest CP210x Drivers can be downloaded from here
"
+ "message": "Welcome to Cleanflight - Configurator, a utility designed to simplify updating, configuring and tuning of your flight controller.
The application supports all hardware that can run cleanflight (sparky, cc3d, acro naze, naze, afromini, flip32, flip32+, cjmcu, chebuzz f3, stm32f3discovery, naze32pro, etc)
The firmware source code can be downloaded from here
The newest binary firmware image is available here
Latest CP210x Drivers can be downloaded from here
"
},
"defaultChangelogHead": {
"message": "Configurator - Changelog"
@@ -942,9 +952,6 @@
"firmwareFlasherFailedToLoadOnlineFirmware": {
"message": "Failed to load remote firmware"
},
- "firmwareFlasherWaitForFinish": {
- "message": "You can't do this right now, please wait for current operation to finish ..."
- },
"ledStripHelp": {
"message": "The flight controller can control colors and effects of individual LEDs on a strip.
Configure LEDs on the grid, configure wiring order then attach LEDs on your aircraft according to grid positions."
diff --git a/js/gui.js b/js/gui.js
index 22aecffca2..4b2aa07667 100644
--- a/js/gui.js
+++ b/js/gui.js
@@ -198,7 +198,11 @@ GUI_control.prototype.tab_switch_cleanup = function (callback) {
MSP.callbacks_cleanup(); // we don't care about any old data that might or might not arrive
GUI.interval_kill_all(); // all intervals (mostly data pulling) needs to be removed on tab switch
- TABS[this.active_tab].cleanup(callback);
+ if (this.active_tab) {
+ TABS[this.active_tab].cleanup(callback);
+ } else {
+ callback();
+ }
};
// initialize object into GUI variable
diff --git a/js/serial_backend.js b/js/serial_backend.js
index d6e678991c..9ae7d631e6 100755
--- a/js/serial_backend.js
+++ b/js/serial_backend.js
@@ -170,7 +170,9 @@ function onOpen(openInfo) {
CONFIGURATOR.connectionValid = true;
$('div#port-picker a.connect').text(chrome.i18n.getMessage('disconnect')).addClass('active');
- $('#tabs li a:first').click();
+ $('#tabs ul.mode-disconnected').hide();
+ $('#tabs ul.mode-connected').show();
+ $('#tabs ul.mode-connected li a:first').click();
});
});
});
@@ -206,6 +208,9 @@ function onClosed(result) {
} else { // Something went wrong
GUI.log(chrome.i18n.getMessage('serialPortClosedFail'));
}
+ $('#tabs ul.mode-disconnected').show();
+ $('#tabs ul.mode-connected').hide();
+ $('#tabs ul.mode-disconnected li a:first').click();
}
function read_serial(info) {
diff --git a/main.css b/main.css
index 58089c45d4..4265f8373c 100644
--- a/main.css
+++ b/main.css
@@ -224,6 +224,11 @@ input[type="number"]::-webkit-inner-spin-button {
font-weight: bold;
}
+
+#tabs ul.mode-connected {
+ display: none;
+}
+
#tabs li {
float: left;
margin-right: 5px;
@@ -231,6 +236,7 @@ input[type="number"]::-webkit-inner-spin-button {
border: 1px solid #848484;
border-bottom: 0;
}
+
#tabs li a {
display: block;
diff --git a/main.html b/main.html
index f8fa5bafcd..829d2bb0b5 100755
--- a/main.html
+++ b/main.html
@@ -120,7 +120,11 @@