From 38c50749ebe7d07bcd34295a853ed7f9735b57b4 Mon Sep 17 00:00:00 2001 From: Tim Schneeberger Date: Mon, 18 Jan 2021 18:36:57 +0100 Subject: [PATCH] Fix progress bar layout issues --- .../Interface/Pages/SystemCoredumpPage.xaml | 87 +++++++++---------- .../Pages/SystemCoredumpPage.xaml.cs | 2 +- .../Interface/Pages/UpdateProgressPage.xaml | 2 +- GalaxyBudsClient/i18n/en.xaml | 2 +- 4 files changed, 46 insertions(+), 47 deletions(-) diff --git a/GalaxyBudsClient/Interface/Pages/SystemCoredumpPage.xaml b/GalaxyBudsClient/Interface/Pages/SystemCoredumpPage.xaml index 046ffa25c..9fc3935ad 100644 --- a/GalaxyBudsClient/Interface/Pages/SystemCoredumpPage.xaml +++ b/GalaxyBudsClient/Interface/Pages/SystemCoredumpPage.xaml @@ -1,26 +1,26 @@ + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:pages="clr-namespace:GalaxyBudsClient.Interface.Pages" + xmlns:elements="clr-namespace:GalaxyBudsClient.Interface.Elements" + xmlns:items="clr-namespace:GalaxyBudsClient.Interface.Items" + mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="36" + x:Class="GalaxyBudsClient.Interface.Pages.SystemCoredumpPage" + DockPanel.Dock="Top" Margin="10,0"> - - - - - - + + + + + + - - + + + Classes="RoundedBorderListItem"> @@ -29,52 +29,51 @@ - - - + + + + Text="{DynamicResource coredump_dl_progress_prepare}" /> + Foreground="{DynamicResource ForegroundTextBrush}" /> + Margin="0,13" /> + TextWrapping="Wrap" /> - - - - - - - - - - - + + + + + + + + + + - + \ No newline at end of file diff --git a/GalaxyBudsClient/Interface/Pages/SystemCoredumpPage.xaml.cs b/GalaxyBudsClient/Interface/Pages/SystemCoredumpPage.xaml.cs index 309595608..4bbb68edd 100644 --- a/GalaxyBudsClient/Interface/Pages/SystemCoredumpPage.xaml.cs +++ b/GalaxyBudsClient/Interface/Pages/SystemCoredumpPage.xaml.cs @@ -49,7 +49,7 @@ private void OnFinished(object? sender, LogDownloadFinishedEventArgs e) }; string? path = await dlg.ShowAsync(MainWindow.Instance); - if (path == null) + if (string.IsNullOrEmpty(path)) { return; } diff --git a/GalaxyBudsClient/Interface/Pages/UpdateProgressPage.xaml b/GalaxyBudsClient/Interface/Pages/UpdateProgressPage.xaml index b2a23f077..9d99091fa 100644 --- a/GalaxyBudsClient/Interface/Pages/UpdateProgressPage.xaml +++ b/GalaxyBudsClient/Interface/Pages/UpdateProgressPage.xaml @@ -13,7 +13,7 @@ - + diff --git a/GalaxyBudsClient/i18n/en.xaml b/GalaxyBudsClient/i18n/en.xaml index 3571906be..10b27f8fd 100644 --- a/GalaxyBudsClient/i18n/en.xaml +++ b/GalaxyBudsClient/i18n/en.xaml @@ -297,7 +297,7 @@ Downloading core dump... {0}% ({0}/{1} bytes) - The audio stream is temporarily paused while downloading. Your earbuds will be disconnected as soon as the transmission finishes, please reconnect them manually. Once finished, you will be prompted to select a directory for all collected data. If the transmission is stuck or the device disconnected prematurely, you need to restart the download. This feature is currently unstable. + The audio stream is temporarily paused while downloading. Your earbuds will be disconnected as soon as the transmission finishes, please reconnect them manually. Once finished, you will be prompted to select a directory for all collected data. If the transmission is stuck or the device disconnected prematurely, you need to restart the download. This feature is currently very unstable. Failed to save dump Unable to copy dump from temporary location. Reason: {0}