mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
add version text to the exception dialog
This commit is contained in:
parent
a52a9b4ee8
commit
2e969d72c2
9
Bloxstrap/Resources/Strings.Designer.cs
generated
9
Bloxstrap/Resources/Strings.Designer.cs
generated
@ -974,6 +974,15 @@ namespace Bloxstrap.Resources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Version {0}.
|
||||||
|
/// </summary>
|
||||||
|
public static string Dialog_Exception_Version {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Dialog.Exception.Version", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to The chosen bootstrapper icon could not be loaded.
|
/// Looks up a localized string similar to The chosen bootstrapper icon could not be loaded.
|
||||||
///
|
///
|
||||||
|
@ -1236,4 +1236,7 @@ Would you like to enable test mode?</value>
|
|||||||
<value>Icons</value>
|
<value>Icons</value>
|
||||||
<comment>Name of the folder that gets created according to the "create shortcut icons" option. Ensure that it is a valid folder name.</comment>
|
<comment>Name of the folder that gets created according to the "create shortcut icons" option. Ensure that it is a valid folder name.</comment>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Dialog.Exception.Version" xml:space="preserve">
|
||||||
|
<value>Version {0}</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
@ -40,11 +40,15 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Border Grid.Row="2" Padding="15" Background="{ui:ThemeResource SolidBackgroundFillColorSecondaryBrush}">
|
<Border Grid.Row="2" Padding="15" Background="{ui:ThemeResource SolidBackgroundFillColorSecondaryBrush}">
|
||||||
|
<Grid>
|
||||||
|
<TextBlock x:Name="VersionText" VerticalAlignment="Bottom" HorizontalAlignment="Left" Foreground="{DynamicResource TextFillColorTertiaryBrush}" Text="Version 2.8.0" />
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" FlowDirection="LeftToRight" HorizontalAlignment="Right">
|
<StackPanel Orientation="Horizontal" FlowDirection="LeftToRight" HorizontalAlignment="Right">
|
||||||
<Button x:Name="ReportExceptionButton" Content="{x:Static resources:Strings.Dialog_Exception_Report}" />
|
<Button x:Name="ReportExceptionButton" Content="{x:Static resources:Strings.Dialog_Exception_Report}" />
|
||||||
<Button x:Name="LocateLogFileButton" Content="{x:Static resources:Strings.Common_OpenLogFile}" Margin="12,0,0,0" />
|
<Button x:Name="LocateLogFileButton" Content="{x:Static resources:Strings.Common_OpenLogFile}" Margin="12,0,0,0" />
|
||||||
<Button x:Name="CloseButton" MinWidth="100" Content="{x:Static resources:Strings.Common_Close}" Margin="12,0,0,0" />
|
<Button x:Name="CloseButton" MinWidth="100" Content="{x:Static resources:Strings.Common_Close}" Margin="12,0,0,0" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
</base:WpfUiWindow>
|
</base:WpfUiWindow>
|
||||||
|
@ -40,6 +40,8 @@ namespace Bloxstrap.UI.Elements.Dialogs
|
|||||||
helpMessage = String.Format(Strings.Dialog_Exception_Info_2_Alt, wikiUrl);
|
helpMessage = String.Format(Strings.Dialog_Exception_Info_2_Alt, wikiUrl);
|
||||||
|
|
||||||
HelpMessageMDTextBlock.MarkdownText = helpMessage;
|
HelpMessageMDTextBlock.MarkdownText = helpMessage;
|
||||||
|
VersionText.Text = String.Format(Strings.Dialog_Exception_Version, App.Version);
|
||||||
|
|
||||||
ReportExceptionButton.Click += (_, _) => Utilities.ShellExecute(issueUrl);
|
ReportExceptionButton.Click += (_, _) => Utilities.ShellExecute(issueUrl);
|
||||||
|
|
||||||
LocateLogFileButton.Click += delegate
|
LocateLogFileButton.Click += delegate
|
||||||
|
Loading…
Reference in New Issue
Block a user