Skip to content

Commit

Permalink
🩹 Fix duplicate entries on start menu
Browse files Browse the repository at this point in the history
  • Loading branch information
russkyc committed Dec 29, 2024
1 parent 97ef6dd commit 534e83b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Nitefox 1.1.1 Release
Nitefox 1.1.2 Release
- Fix start menu duplicate app entries on windows

Nitefox 1.1.1 Release
- Fix zip and installer versions not running

Nitefox 1.1.0 Release
Expand Down
2 changes: 1 addition & 1 deletion Nitefox.Client.Photino/Nitefox.Client.Photino.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ApplicationIcon>nitefox_icon.ico</ApplicationIcon>
<Version>1.1.1</Version>
<Version>1.1.2</Version>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
Expand Down
11 changes: 9 additions & 2 deletions Nitefox.Client.Photino/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Nitefox.Client.Photino.Services;
using Nitefox.Client.Shared;
using Photino.Blazor;
using Photino.NET;

namespace Nitefox.Client.Photino
{
Expand All @@ -29,14 +30,20 @@ static void Main(string[] args)
.SetMinHeight(700)
.SetContextMenuEnabled(false)
.SetIconFile("nitefox_icon.ico")
.SetTitle("Nitefox");
.SetTitle(""); // To avoid creating a start menu shortcut

app.MainWindow.Centered = true;
app.MainWindow.GrantBrowserPermissions = true;
app.MainWindow.WindowCreated += (sender, _) =>
{
// Set title after window is created to avoid errors
if (sender is not PhotinoWindow window) return;
window.Title = "Nitefox";
};

App = app;

AppDomain.CurrentDomain.UnhandledException += (sender, error) =>
AppDomain.CurrentDomain.UnhandledException += (_, error) =>
{
app.MainWindow.ShowMessage("Fatal exception", error.ExceptionObject.ToString());
};
Expand Down

0 comments on commit 534e83b

Please sign in to comment.