mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-04-29 09:43:04 +00:00
App API:
* Summaries rewritten * Added new parameters / Removed not supported parameters * Added some new methods like appFocus(options), appHasSingleLock, etc.
This commit is contained in:
@@ -21,7 +21,7 @@ namespace ElectronNET.WebApp.Controllers
|
||||
|
||||
Electron.IpcMain.On("sys-info", async (args) =>
|
||||
{
|
||||
string homePath = await Electron.App.GetPathAsync(PathName.home);
|
||||
string homePath = await Electron.App.GetPathAsync(PathName.Home);
|
||||
|
||||
var mainWindow = Electron.WindowManager.BrowserWindows.First();
|
||||
Electron.IpcMain.Send(mainWindow, "got-sys-info", homePath);
|
||||
|
||||
Reference in New Issue
Block a user