mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-15 03:28:07 +01:00
This commit is contained in:
parent
fd98963038
commit
575a151b89
5 changed files with 80 additions and 19 deletions
|
|
@ -40,6 +40,11 @@ export const onGetConfig = (isStart: boolean, app: App) => {
|
|||
port: location.port
|
||||
});
|
||||
webFrame.setZoomFactor(window.siyuan.storage[Constants.LOCAL_ZOOM]);
|
||||
ipcRenderer.send(Constants.SIYUAN_CMD, {
|
||||
cmd: "setTrafficLightPosition",
|
||||
zoom: window.siyuan.storage[Constants.LOCAL_ZOOM],
|
||||
position: Constants.SIZE_ZOOM.find((item) => item.zoom === window.siyuan.storage[Constants.LOCAL_ZOOM]).position
|
||||
});
|
||||
/// #endif
|
||||
if (!window.siyuan.config.uiLayout || (window.siyuan.config.uiLayout && !window.siyuan.config.uiLayout.left)) {
|
||||
window.siyuan.config.uiLayout = Constants.SIYUAN_EMPTY_LAYOUT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue