mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 https://github.com/siyuan-note/siyuan/issues/9368 isFullScreen
This commit is contained in:
parent
ec65118339
commit
b869fd1d9d
8 changed files with 29 additions and 18 deletions
|
|
@ -664,8 +664,16 @@ app.whenReady().then(() => {
|
|||
ipcMain.on("siyuan-first-quit", () => {
|
||||
app.exit();
|
||||
});
|
||||
ipcMain.handle("siyuan-dialog", (event, data) => {
|
||||
return dialog[data.type || "showOpenDialog"](data);
|
||||
ipcMain.handle("siyuan-get", (event, data) => {
|
||||
if (data.cmd === "showOpenDialog") {
|
||||
return dialog.showOpenDialog(data);
|
||||
}
|
||||
if (data.cmd === "showSaveDialog") {
|
||||
return dialog.showSaveDialog(data);
|
||||
}
|
||||
if (data.cmd === "isFullScreen") {
|
||||
return getWindowByContentId(event.sender.id).isFullScreen();
|
||||
}
|
||||
});
|
||||
ipcMain.on("siyuan-cmd", (event, cmd) => {
|
||||
switch (cmd) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue