Skip to content

Commit ecda9ca

Browse files
authored
01.03.04
Fixed bug identifed in #18
1 parent 95f6d68 commit ecda9ca

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

src/BtnCmdMainPanel.vue

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
<div class="mydiv">
5555
<v-row class="pa-0 ma-0">
5656
<v-col cols="12" class="pa-0 ma-0">
57-
<!--<v-row mt-0>s
57+
<!-- <v-row mt-0>s
5858
<v-col><span class="text-caption">tab data= {{ directory }}</span></v-col>
5959
<v-col><span class="text-caption">curr tab = {{ tmpDebgug }}</span></v-col>
60-
</v-row>-->
60+
</v-row> -->
6161
<!-- <v-row mt-0><v-col><span class="text-caption">debug value = {{ printerMode }}</span></v-col></v-row> -->
6262
<v-row>
6363
<v-tabs class="elevation-2 pa-0 ma-0 mytabs-default" v-model="getCurrTabIndex">
@@ -971,9 +971,10 @@ export default {
971971
bSBCCInstalled: false,
972972
showSBCCEdit: false,
973973
tmpSBCCDef: {},
974-
btnCmdVersion: '01.03.03',
974+
lastLayoutTabID: null,
975+
btnCmdVersion: '01.03.04',
975976
btnCmd : {
976-
btnCmdVersion: '01.03.03',
977+
btnCmdVersion: '01.03.04',
977978
btnCmdIDUpdateRun: true,
978979
systemSettings: {
979980
lastID: 1,
@@ -1650,6 +1651,7 @@ export default {
16501651
async editModeToggle(){
16511652
this.setActionResponse('');
16521653
var tmpCurrTabID = this.currTab
1654+
//this.tmpDebgug = this.currTab
16531655
this.editMode = !this.editMode;
16541656
if(this.editMode){
16551657
await this.$nextTick()
@@ -1662,6 +1664,7 @@ export default {
16621664
createModeToggle(){
16631665
this.setActionResponse('');
16641666
this.createMode = !this.createMode;
1667+
this.lastLayoutTabID = this.currTab;
16651668
if(this.createMode){
16661669
var tmpArr = this.btnCmd.tabs.filter(item => item.embedTab === true);
16671670
if(tmpArr.length >= 1){
@@ -1676,8 +1679,10 @@ export default {
16761679
this.saveSettings();
16771680
await this.$nextTick();
16781681
var tmpCurrTabID = this.currTab;
1682+
16791683
if(this.createMode){
16801684
this.createMode = false
1685+
tmpCurrTabID = this.lastLayoutTabID;
16811686
}
16821687
if(this.editMode){
16831688
this.editMode = false
@@ -1692,7 +1697,10 @@ export default {
16921697
var tmpCurrTabID = this.currTab;
16931698
this.loadSettings();
16941699
await this.$nextTick();
1695-
if(this.createMode){this.createMode = false}
1700+
if(this.createMode){
1701+
this.createMode = false
1702+
tmpCurrTabID = this.lastLayoutTabID;
1703+
}
16961704
if(this.editMode){this.editMode = false}
16971705
await this.$nextTick()
16981706
this.onChangeTab(tmpCurrTabID);
@@ -1707,7 +1715,9 @@ export default {
17071715
}
17081716
},
17091717
onChangeTab(tmpTabID){
1718+
//console.log("Changing Tab to: ", tmpTabID)
17101719
this.currTab = tmpTabID;
1720+
//this.tmpDebgug = this.currTab
17111721
this.getCurrTabIndex = "tab-"+tmpTabID;
17121722
var tmpTabObj = this.btnCmd.tabs.filter(item => item.tabID == tmpTabID);
17131723
this.currTabObj = tmpTabObj[0];

src/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"id": "BtnCmd",
44
"name": "BtnCmd",
55
"author": "Minty Trebor",
6-
"version": "01.03.03",
6+
"version": "01.03.04",
77
"license": "GPL-3.0-or-later",
88
"homepage": "https://github.com/MintyTrebor",
99
"dwcVersion": "auto",

0 commit comments

Comments
 (0)