* Summaries rewritten
* Added new parameters / Removed not supported parameters
* Added some new methods like appFocus(options), appHasSingleLock, etc.
This commit is contained in:
Konstantin Gross
2020-05-31 03:09:54 +02:00
parent 1ab48350e1
commit eee84d214e
22 changed files with 655 additions and 507 deletions

View File

@@ -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);

View File

@@ -18,7 +18,7 @@ namespace ElectronNET.WebApp.Controllers
var saveOptions = new SaveDialogOptions
{
Title = "Save an PDF-File",
DefaultPath = await Electron.App.GetPathAsync(PathName.documents),
DefaultPath = await Electron.App.GetPathAsync(PathName.Documents),
Filters = new FileFilter[]
{
new FileFilter { Name = "PDF", Extensions = new string[] { "pdf" } }

View File

@@ -12,7 +12,7 @@ namespace ElectronNET.WebApp.Controllers
{
Electron.IpcMain.On("open-file-manager", async (args) =>
{
string path = await Electron.App.GetPathAsync(PathName.home);
string path = await Electron.App.GetPathAsync(PathName.Home);
await Electron.Shell.ShowItemInFolderAsync(path);
});