small refactor

This commit is contained in:
Jan Prochazka
2021-01-30 20:05:50 +01:00
parent a17b76c570
commit a714f7ae54
4 changed files with 10 additions and 11 deletions

View File

@@ -225,7 +225,7 @@ export default function TabsPanel() {
if (electron) {
const { ipcRenderer } = electron;
const activeTab = tabs.find(x => x.selected);
window['activeTabId'] = activeTab ? activeTab.tabid : null;
window['dbgate_activeTabId'] = activeTab ? activeTab.tabid : null;
ipcRenderer.send('update-menu');
}
}, [tabs]);