mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 Open the Explorer window in the foreground (#14828)
fix https://github.com/siyuan-note/siyuan/issues/12652
This commit is contained in:
parent
6ce25af3c6
commit
bf08509986
8 changed files with 25 additions and 12 deletions
|
|
@ -19,6 +19,7 @@ import {uninstall} from "../plugin/uninstall";
|
|||
import {afterLoadPlugin, loadPlugin, loadPlugins, reloadPlugin} from "../plugin/loader";
|
||||
import {loadAssets} from "../util/assets";
|
||||
import {addScript} from "../protyle/util/addScript";
|
||||
import {openPath} from "../util/pathName";
|
||||
|
||||
export const bazaar = {
|
||||
element: undefined as Element,
|
||||
|
|
@ -625,9 +626,9 @@ export const bazaar = {
|
|||
/// #if !BROWSER
|
||||
const dirName = dataObj.bazaarType;
|
||||
if (dirName === "icons" || dirName === "themes") {
|
||||
shell.openPath(path.join(window.siyuan.config.system.confDir, "appearance", dirName, dataObj.name));
|
||||
openPath(path.join(window.siyuan.config.system.confDir, "appearance", dirName, dataObj.name));
|
||||
} else {
|
||||
shell.openPath(path.join(window.siyuan.config.system.dataDir, dirName, dataObj.name));
|
||||
openPath(path.join(window.siyuan.config.system.dataDir, dirName, dataObj.name));
|
||||
}
|
||||
/// #endif
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue