mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 11:06:02 +00:00
set tab preview mode off in markTabUnsaved
This commit is contained in:
@@ -23,7 +23,9 @@ export function changeTab(tabid, changeFunc) {
|
||||
export function markTabUnsaved(tabid) {
|
||||
const tab = getOpenedTabs().find(x => x.tabid == tabid);
|
||||
if (tab.unsaved) return;
|
||||
openedTabs.update(files => files.map(tab => (tab.tabid == tabid ? { ...tab, unsaved: true } : tab)));
|
||||
openedTabs.update(files =>
|
||||
files.map(tab => (tab.tabid == tabid ? { ...tab, unsaved: true, tabPreviewMode: false } : tab))
|
||||
);
|
||||
}
|
||||
|
||||
export function markTabSaved(tabid) {
|
||||
|
||||
Reference in New Issue
Block a user