From 006bedf8cd7eb66008c691310fd6d51ad13100a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Wed, 26 Dec 2018 21:15:39 +0100 Subject: [PATCH] Updated Avalonia --- build/Avalonia.Desktop.props | 8 ++++---- build/Avalonia.props | 4 ++-- build/EmbedXaml.props | 4 ++-- src/SimpleWavSplitter.Avalonia/App.xaml | 12 +++++++----- src/SimpleWavSplitter.Avalonia/MainWindow.xaml.cs | 6 +++--- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/build/Avalonia.Desktop.props b/build/Avalonia.Desktop.props index 9f8c1b3..cbd4396 100644 --- a/build/Avalonia.Desktop.props +++ b/build/Avalonia.Desktop.props @@ -1,7 +1,7 @@  - + @@ -10,10 +10,10 @@ - - + + - \ No newline at end of file + diff --git a/build/Avalonia.props b/build/Avalonia.props index 4de92b9..f2d5a2e 100644 --- a/build/Avalonia.props +++ b/build/Avalonia.props @@ -1,7 +1,7 @@  - + @@ -11,4 +11,4 @@ - \ No newline at end of file + diff --git a/build/EmbedXaml.props b/build/EmbedXaml.props index e411c3f..a8fa87a 100644 --- a/build/EmbedXaml.props +++ b/build/EmbedXaml.props @@ -4,8 +4,8 @@ %(Filename) Code - + Designer - + diff --git a/src/SimpleWavSplitter.Avalonia/App.xaml b/src/SimpleWavSplitter.Avalonia/App.xaml index 24ec910..a00d982 100644 --- a/src/SimpleWavSplitter.Avalonia/App.xaml +++ b/src/SimpleWavSplitter.Avalonia/App.xaml @@ -1,8 +1,10 @@  - - - - - + + + + + diff --git a/src/SimpleWavSplitter.Avalonia/MainWindow.xaml.cs b/src/SimpleWavSplitter.Avalonia/MainWindow.xaml.cs index 345a69d..5e73bbc 100644 --- a/src/SimpleWavSplitter.Avalonia/MainWindow.xaml.cs +++ b/src/SimpleWavSplitter.Avalonia/MainWindow.xaml.cs @@ -66,7 +66,7 @@ namespace SimpleWavSplitter.Avalonia dlg.InitialDirectory = textOutputPath.Text; } - var result = await dlg.ShowAsync(); + var result = await dlg.ShowAsync(this); if (!string.IsNullOrWhiteSpace(result)) { textOutputPath.Text = result; @@ -80,7 +80,7 @@ namespace SimpleWavSplitter.Avalonia dlg.Filters.Add(new FileDialogFilter() { Name = "All Files", Extensions = { "*" } }); dlg.AllowMultiple = true; - var result = await dlg.ShowAsync(); + var result = await dlg.ShowAsync(this); if (result != null) { _wavFileSplitter.GetWavHeader(result, text => textOutput.Text = text); @@ -94,7 +94,7 @@ namespace SimpleWavSplitter.Avalonia dlg.Filters.Add(new FileDialogFilter() { Name = "All Files", Extensions = { "*" } }); dlg.AllowMultiple = true; - var result = await dlg.ShowAsync(); + var result = await dlg.ShowAsync(this); if (result != null) { await _wavFileSplitter.SplitWavFiles(