Add on screen control for some hot keys. To toggle it, click/tap currently opened tab.

This commit is contained in:
NI
2019-09-11 11:31:08 +08:00
parent c5927a5b5d
commit 6585810cc4
9 changed files with 843 additions and 19 deletions

View File

@@ -448,6 +448,7 @@ export default {
name: data.name,
info: data.info,
control: data.control,
toolbar: false,
indicator: {
error: "",
updated: false
@@ -475,7 +476,9 @@ export default {
await this.tab.tabs[this.tab.current].control.enabled();
},
async retapTab(tab) {
await this.tab.tabs[tab].control.retap();
this.tab.tabs[tab].toolbar = !this.tab.tabs[tab].toolbar;
await this.tab.tabs[tab].control.retap(this.tab.tabs[tab].toolbar);
},
async closeTab(index) {
if (this.tab.tabs[index].status.closing) {