Merge pull request #2328 from haslinghuis/fix_exit_dfu
Disable Exit Dfu Mode and Load Firmware buttons while flashing10.7-maintenance
parent
b7aea9e3b8
commit
78ad3ebf85
|
@ -999,7 +999,7 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
});
|
});
|
||||||
|
|
||||||
portPickerElement.change(function () {
|
portPickerElement.change(function () {
|
||||||
if ($('option:selected', this).data().isDFU) {
|
if ($('option:selected', this).data().isDFU && !GUI.connect_lock) {
|
||||||
exitDfuElement.removeClass('disabled');
|
exitDfuElement.removeClass('disabled');
|
||||||
} else {
|
} else {
|
||||||
exitDfuElement.addClass('disabled');
|
exitDfuElement.addClass('disabled');
|
||||||
|
@ -1074,6 +1074,8 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
|
|
||||||
function startFlashing() {
|
function startFlashing() {
|
||||||
exitDfuElement.addClass('disabled');
|
exitDfuElement.addClass('disabled');
|
||||||
|
$("a.load_remote_file").addClass('disabled');
|
||||||
|
$("a.load_file").addClass('disabled');
|
||||||
if (!GUI.connect_lock) { // button disabled while flashing is in progress
|
if (!GUI.connect_lock) { // button disabled while flashing is in progress
|
||||||
if (self.parsed_hex) {
|
if (self.parsed_hex) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue