mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44:59 +00:00
Allow About to center in parent
This commit is contained in:
parent
463d161ac7
commit
30fa8201ed
2 changed files with 8 additions and 6 deletions
|
@ -109,11 +109,13 @@ namespace SourceGit
|
||||||
{
|
{
|
||||||
if (data is Views.ChromelessWindow window)
|
if (data is Views.ChromelessWindow window)
|
||||||
{
|
{
|
||||||
if (showAsDialog && Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime { MainWindow: { } owner })
|
if (Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime { MainWindow: { } owner })
|
||||||
window.ShowDialog(owner);
|
{
|
||||||
else
|
if (showAsDialog)
|
||||||
window.Show();
|
window.ShowDialog(owner);
|
||||||
|
else
|
||||||
|
window.Show(owner);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
Title="{DynamicResource Text.About}"
|
Title="{DynamicResource Text.About}"
|
||||||
Width="520" Height="230"
|
Width="520" Height="230"
|
||||||
CanResize="False"
|
CanResize="False"
|
||||||
WindowStartupLocation="CenterScreen">
|
WindowStartupLocation="CenterOwner">
|
||||||
<Grid RowDefinitions="Auto,*">
|
<Grid RowDefinitions="Auto,*">
|
||||||
<!-- TitleBar -->
|
<!-- TitleBar -->
|
||||||
<Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}">
|
<Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue