mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-18 22:56:07 +00:00
implement hybrid support
This commit is contained in:
@@ -8,18 +8,20 @@ namespace ElectronNET.WebApp.Controllers
|
||||
{
|
||||
public IActionResult Index()
|
||||
{
|
||||
Electron.IpcMain.On("open-file-manager", async (args) => {
|
||||
if (HybridSupport.IsElectronActive)
|
||||
{
|
||||
Electron.IpcMain.On("open-file-manager", async (args) =>
|
||||
{
|
||||
string path = await Electron.App.GetPathAsync(PathName.home);
|
||||
await Electron.Shell.ShowItemInFolderAsync(path);
|
||||
|
||||
string path = await Electron.App.GetPathAsync(PathName.home);
|
||||
await Electron.Shell.ShowItemInFolderAsync(path);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Electron.IpcMain.On("open-ex-links", async (args) => {
|
||||
|
||||
await Electron.Shell.OpenExternalAsync("https://github.com/ElectronNET");
|
||||
|
||||
});
|
||||
Electron.IpcMain.On("open-ex-links", async (args) =>
|
||||
{
|
||||
await Electron.Shell.OpenExternalAsync("https://github.com/ElectronNET");
|
||||
});
|
||||
}
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user