File tree Expand file tree Collapse file tree 5 files changed +24
-16
lines changed Expand file tree Collapse file tree 5 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
- <Version >0.5.2 </Version >
3
+ <Version >0.5.3 </Version >
4
4
<OutputType >WinExe</OutputType >
5
5
<TargetFramework >net9.0</TargetFramework >
6
6
<Nullable >enable</Nullable >
Original file line number Diff line number Diff line change @@ -443,9 +443,12 @@ private async Task PlayButtonRun()
443
443
if ( _updateInfo != null )
444
444
{
445
445
UpdateProgress ( 0.0f , "Updating launcher" ) ;
446
- var updateWindow = new UpdateWindow ( _updateInfo . TargetFullRelease . NotesMarkdown )
446
+ var updateWindow = new UpdateWindow
447
447
{
448
- DataContext = new UpdateWindowViewModel ( )
448
+ DataContext = new UpdateWindowViewModel
449
+ {
450
+ Markdown = _updateInfo . TargetFullRelease . NotesMarkdown
451
+ }
449
452
} ;
450
453
var result = await updateWindow . ShowDialog < bool ? > ( MainWindow . Instance ! ) ;
451
454
// don't update if user cancelled update
Original file line number Diff line number Diff line change 4
4
xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5
5
xmlns : md =" https://github.com/whistyun/Markdown.Avalonia"
6
6
xmlns : vm =" clr-namespace:NewRGB.ViewModels"
7
- mc : Ignorable =" d" d : DesignWidth =" 300 " d : DesignHeight =" 170 "
7
+ mc : Ignorable =" d" d : DesignWidth =" 550 " d : DesignHeight =" 300 "
8
8
x : Class =" NewRGB.Views.UpdateWindow"
9
9
x : DataType =" vm:UpdateWindowViewModel"
10
- Title =" Release notes" >
10
+ Title =" Release notes"
11
+ Width =" 550"
12
+ Height =" 300" >
11
13
<Panel >
12
- <Image Source =" /Assets/0.png" Stretch =" Fill" />
13
- <StackPanel HorizontalAlignment =" Center" VerticalAlignment =" Center" Orientation =" Vertical" >
14
- <md : MarkdownScrollViewer Markdown =" {CompiledBinding Markdown}" ></md : MarkdownScrollViewer >
15
- <StackPanel HorizontalAlignment =" Right" VerticalAlignment =" Center" Orientation =" Horizontal" >
16
- <Button Click =" OnCancel" >Cancel</Button >
17
- <Button Click =" OnUpdate" >Update</Button >
14
+ <!-- <Image Source="/Assets/0.png" Stretch="Fill" /> -->
15
+ <Panel HorizontalAlignment =" Center" VerticalAlignment =" Center" MinWidth =" 550" MinHeight =" 300" >
16
+ <Rectangle Fill =" DarkKhaki" Opacity =" 100" />
17
+ <StackPanel HorizontalAlignment =" Center" VerticalAlignment =" Center" Orientation =" Vertical" Margin =" 10"
18
+ Spacing =" 20" >
19
+ <md : MarkdownScrollViewer Markdown =" {CompiledBinding Markdown}" ></md : MarkdownScrollViewer >
20
+ <StackPanel HorizontalAlignment =" Right" VerticalAlignment =" Center" Orientation =" Horizontal" >
21
+ <Button Click =" OnCancel" >Cancel</Button >
22
+ <Button Click =" OnUpdate" >Update</Button >
23
+ </StackPanel >
18
24
</StackPanel >
19
- </StackPanel >
25
+ </Panel >
20
26
</Panel >
21
27
</Window >
Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ namespace NewRGB.Views;
6
6
7
7
public partial class UpdateWindow : Window
8
8
{
9
- public UpdateWindow ( string notes )
9
+ public UpdateWindow ( )
10
10
{
11
11
InitializeComponent ( ) ;
12
- if ( DataContext is UpdateWindowViewModel updateWindowViewModel ) updateWindowViewModel . Markdown = notes ;
13
12
}
14
13
15
14
private void OnCancel ( object ? sender , RoutedEventArgs e )
Original file line number Diff line number Diff line change 1
- # v0.5.2
1
+ # v0.5.3
2
2
3
3
### Fixes
4
4
5
- - Fixed a bug reported by gimmy
5
+ - Fixed update notes not displaying
You can’t perform that action at this time.
0 commit comments