Skip to content

Commit

Permalink
Fix update window size
Browse files Browse the repository at this point in the history
  • Loading branch information
mgth committed Mar 10, 2024
1 parent ccce817 commit f65278e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
Width="400"
Height="260"
WindowStartupLocation="CenterScreen"
SizeToContent="Height"
Title="Update Little Big Mouse"
Icon="{Binding MainIcon}"
d:DesignHeight="300" d:DesignWidth="300"
x:DataType="updater:ApplicationUpdaterViewModel"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Input;
using Avalonia.Controls;
using Avalonia.Platform;
using Avalonia.Threading;
using HLab.Mvvm.ReactiveUI;
using ReactiveUI;
Expand All @@ -27,6 +29,7 @@ public ApplicationUpdaterViewModel()

UpdateCommand = ReactiveCommand.Create(Update, this.WhenAnyValue(e => e.NewVersionFound));
}
public object MainIcon { get; } = new WindowIcon(AssetLoader.Open(new Uri("avares://LittleBigMouse.Ui.Avalonia/Assets/lbm-logo.ico")));

public void Show()
{
Expand Down

0 comments on commit f65278e

Please sign in to comment.