mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
f58c2df52c
commit
1eaec1d180
4 changed files with 18 additions and 17 deletions
|
|
@ -25,6 +25,9 @@ import {
|
|||
import {isTouchDevice} from "../../util/functions";
|
||||
import {App} from "../../index";
|
||||
import {refreshFileTree} from "../../dialog/processSystem";
|
||||
/// #if !BROWSER
|
||||
import {ipcRenderer} from "electron";
|
||||
/// #endif
|
||||
import {hideTooltip, showTooltip} from "../../dialog/tooltip";
|
||||
|
||||
export class Files extends Model {
|
||||
|
|
@ -467,9 +470,13 @@ export class Files extends Model {
|
|||
}
|
||||
});
|
||||
window.siyuan.dragElement = undefined;
|
||||
/// #if !BROWSER
|
||||
ipcRenderer.send(Constants.SIYUAN_SEND_WINDOWS, {cmd: "resetTabsStyle"});
|
||||
/// #else
|
||||
document.querySelectorAll(".layout-tab-bars--drag").forEach(item => {
|
||||
item.classList.remove("layout-tab-bars--drag");
|
||||
});
|
||||
/// #endif
|
||||
});
|
||||
this.element.addEventListener("dragover", (event: DragEvent & { target: HTMLElement }) => {
|
||||
if (window.siyuan.config.readonly || event.dataTransfer.types.includes(Constants.SIYUAN_DROP_TAB)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue