feat: 增加 getFileIcon api

This commit is contained in:
muwoo
2023-05-26 09:43:06 +08:00
parent 971ad0e3e2
commit de7fee6a23
3 changed files with 11 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ window.rubick = {
ipcSendSync('showMainWindow');
},
showOpenDialog(options) {
ipcSendSync('showOpenDialog', options);
return ipcSendSync('showOpenDialog', options);
},
setExpendHeight(height) {
ipcSendSync('setExpendHeight', height);
@@ -162,4 +162,8 @@ window.rubick = {
shellBeep: () => {
ipcSend('shellBeep');
},
getFileIcon: (path) => {
return ipcSendSync('getFileIcon', { path });
},
};