mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 16:55:24 +03:00
Now saving the state of the log window.
This commit is contained in:
parent
1eaf63145d
commit
77deaa9af3
1 changed files with 9 additions and 0 deletions
9
main.js
9
main.js
|
@ -42,6 +42,13 @@ $(document).ready(function () {
|
|||
console.log('Application version expired');
|
||||
GUI.log('You are using an old version of ' + chrome.runtime.getManifest().name + '. There may be a more recent version with improvements and fixes.');
|
||||
}
|
||||
|
||||
chrome.storage.local.get('logopen', function (result) {
|
||||
if (result.logopen) {
|
||||
$("#showlog").trigger('click');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// log webgl capability
|
||||
// it would seem the webgl "enabling" through advanced settings will be ignored in the future
|
||||
|
@ -370,6 +377,7 @@ $("#showlog").on('click', function() {
|
|||
$("#content").removeClass('logopen');
|
||||
$(".tab_container").removeClass('logopen');
|
||||
$("#scrollicon").removeClass('active');
|
||||
chrome.storage.local.set({'logopen': false});
|
||||
|
||||
state = false;
|
||||
}else{
|
||||
|
@ -378,6 +386,7 @@ $("#showlog").on('click', function() {
|
|||
$("#content").addClass('logopen');
|
||||
$(".tab_container").addClass('logopen');
|
||||
$("#scrollicon").addClass('active');
|
||||
chrome.storage.local.set({'logopen': true});
|
||||
|
||||
state = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue