From ffedbcc5df85f5922f4b70424f88ed547aa398a2 Mon Sep 17 00:00:00 2001 From: rafael-aero Date: Sat, 20 Nov 2021 16:37:38 +0100 Subject: [PATCH] Add missing GetFileIcon method --- ElectronNET.API/App.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ElectronNET.API/App.cs b/ElectronNET.API/App.cs index cf23444..6717e63 100644 --- a/ElectronNET.API/App.cs +++ b/ElectronNET.API/App.cs @@ -1307,6 +1307,13 @@ namespace ElectronNET.API BridgeConnector.Emit("appSetAboutPanelOptions", JObject.FromObject(options, _jsonSerializer)); } + /// + /// Fetches a path's associated icon. + /// + /// + /// + public Task GetFileIcon(string path) => BridgeConnector.OnResult("appGetFileIcon", "appGetFileIconCompleted", path); + /// /// A which is the user agent string Electron will use as a global fallback. ///