Skip to content

Commit f3d9191

Browse files
added icon
1 parent 2b75bbd commit f3d9191

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

UnityHubNative.Net/MainWindow.cs

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class MainWindow : Window
2929
static Slider s_backgroundBlurIntensitySlider;
3030
static TextBox s_openInTerminalFormatText;
3131
static Key s_lastKey;
32-
private static TabControl s_tabControl;
33-
private static bool _updatingUnityProjectList;
32+
static TabControl s_tabControl;
33+
static bool _updatingUnityProjectList;
3434

3535
public MainWindow(object data)
3636
{
@@ -61,7 +61,7 @@ protected override void OnKeyDown(KeyEventArgs e)
6161
if (s_tabControl.SelectedIndex == 0)
6262
{
6363
// try open project
64-
if (e.Key == Key.Enter && TryGetSelectedProject(out var unityProject))
64+
if (e.Key == Key.Enter && TryGetSelectedProject(out var _))
6565
{
6666
OpenSelectedProject();
6767
e.Handled = true;
@@ -839,12 +839,6 @@ static bool TryGetSelectedProject(out UnityProject unityProject)
839839
return true;
840840
}
841841

842-
static bool IsAnyProjectSelected()
843-
{
844-
var ind = GetUnityProjectSelectedIndex();
845-
return ind >= 0 && ind < UnityHubUtils.UnityProjects.Count;
846-
}
847-
848842
static async void OnAddExistingProjectClicked()
849843
{
850844
try
@@ -914,11 +908,6 @@ static void RevealSelectedProject()
914908
parent.Items.RemoveAt(i);
915909
}
916910

917-
static void ShowTbiDialogue()
918-
{
919-
_ = MessageBoxManager.GetMessageBoxStandard("To be implemented", "Not implemented yet", MsBox.Avalonia.Enums.ButtonEnum.Ok, MsBox.Avalonia.Enums.Icon.Warning).ShowWindowDialogAsync(Instance);
920-
}
921-
922911
void SetupBackground()
923912
{
924913
if (UnityHubNativeNetApp.Config.transparent)

Windows/UnityHubNative.Net.Windows.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<PublishTrimmed>True</PublishTrimmed>
99
<AssemblyName>UnityHubNative.Net</AssemblyName>
1010
<DefineConstants>$(DefineConstants);OS_WINDOWS</DefineConstants>
11+
<ApplicationIcon>res/icon.ico</ApplicationIcon>
1112
</PropertyGroup>
1213

1314
<!--for optimization-->
@@ -25,9 +26,12 @@
2526
<SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
2627
</PropertyGroup>
2728

28-
2929
<ItemGroup>
3030
<ProjectReference Include="..\UnityHubNative.Net\UnityHubNative.Net.csproj" />
3131
</ItemGroup>
3232

33+
<ItemGroup>
34+
<Folder Include="res\" />
35+
</ItemGroup>
36+
3337
</Project>

Windows/res/icon.ico

212 KB
Binary file not shown.

0 commit comments

Comments
 (0)