mirror of
https://github.com/rubickCenter/rubick
synced 2025-10-26 22:51:25 +08:00
feat: 增加 getFileIcon api
This commit is contained in:
@@ -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 });
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user