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 (showAsDialog && Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime { MainWindow: { } owner })
|
||||
if (Current?.ApplicationLifetime is IClassicDesktopStyleApplicationLifetime { MainWindow: { } owner })
|
||||
{
|
||||
if (showAsDialog)
|
||||
window.ShowDialog(owner);
|
||||
else
|
||||
window.Show();
|
||||
|
||||
window.Show(owner);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
Title="{DynamicResource Text.About}"
|
||||
Width="520" Height="230"
|
||||
CanResize="False"
|
||||
WindowStartupLocation="CenterScreen">
|
||||
WindowStartupLocation="CenterOwner">
|
||||
<Grid RowDefinitions="Auto,*">
|
||||
<!-- TitleBar -->
|
||||
<Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue