Skip to content

Commit 534e83b

Browse files
committed
🩹 Fix duplicate entries on start menu
1 parent 97ef6dd commit 534e83b

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

CHANGES

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
Nitefox 1.1.1 Release
1+
Nitefox 1.1.2 Release
2+
- Fix start menu duplicate app entries on windows
3+
4+
Nitefox 1.1.1 Release
25
- Fix zip and installer versions not running
36

47
Nitefox 1.1.0 Release

Nitefox.Client.Photino/Nitefox.Client.Photino.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<OutputType>WinExe</OutputType>
55
<TargetFramework>net8.0</TargetFramework>
66
<ApplicationIcon>nitefox_icon.ico</ApplicationIcon>
7-
<Version>1.1.1</Version>
7+
<Version>1.1.2</Version>
88
</PropertyGroup>
99

1010
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">

Nitefox.Client.Photino/Program.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Nitefox.Client.Photino.Services;
55
using Nitefox.Client.Shared;
66
using Photino.Blazor;
7+
using Photino.NET;
78

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

3435
app.MainWindow.Centered = true;
3536
app.MainWindow.GrantBrowserPermissions = true;
37+
app.MainWindow.WindowCreated += (sender, _) =>
38+
{
39+
// Set title after window is created to avoid errors
40+
if (sender is not PhotinoWindow window) return;
41+
window.Title = "Nitefox";
42+
};
3643

3744
App = app;
3845

39-
AppDomain.CurrentDomain.UnhandledException += (sender, error) =>
46+
AppDomain.CurrentDomain.UnhandledException += (_, error) =>
4047
{
4148
app.MainWindow.ShowMessage("Fatal exception", error.ExceptionObject.ToString());
4249
};

0 commit comments

Comments
 (0)