mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
f7d91a67b9
commit
3dcea128b3
1 changed files with 6 additions and 1 deletions
|
|
@ -337,7 +337,12 @@ export const bazaar = {
|
||||||
const type = target.getAttribute("data-type");
|
const type = target.getAttribute("data-type");
|
||||||
if (type === "open") {
|
if (type === "open") {
|
||||||
/// #if !BROWSER
|
/// #if !BROWSER
|
||||||
shell.openPath(path.join(window.siyuan.config.system.confDir, "appearance", "themes", target.parentElement.getAttribute("data-name")));
|
const dirName = target.parentElement.parentElement.getAttribute("data-bazaar")
|
||||||
|
if (dirName === "icons" || dirName === "themes") {
|
||||||
|
shell.openPath(path.join(window.siyuan.config.system.confDir, "appearance", dirName, target.parentElement.getAttribute("data-name")))
|
||||||
|
} else {
|
||||||
|
shell.openPath(path.join(window.siyuan.config.system.dataDir, dirName, target.parentElement.getAttribute("data-name")));
|
||||||
|
}
|
||||||
/// #endif
|
/// #endif
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue