mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
style<UpdateAvailable>: show update available window as dialog and centered in Launcher
This commit is contained in:
parent
f8561bb9da
commit
7e01792a37
2 changed files with 3 additions and 2 deletions
|
@ -103,7 +103,7 @@ namespace SourceGit.UI {
|
||||||
Dispatcher.Invoke(() => {
|
Dispatcher.Invoke(() => {
|
||||||
var dialog = new UpdateAvailable(ver);
|
var dialog = new UpdateAvailable(ver);
|
||||||
dialog.Owner = this;
|
dialog.Owner = this;
|
||||||
dialog.Show();
|
dialog.ShowDialog();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
FontFamily="Consolas"
|
FontFamily="Consolas"
|
||||||
Height="400" Width="500">
|
Height="400" Width="500"
|
||||||
|
WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
|
||||||
<!-- Enable WindowChrome Feature -->
|
<!-- Enable WindowChrome Feature -->
|
||||||
<WindowChrome.WindowChrome>
|
<WindowChrome.WindowChrome>
|
||||||
<WindowChrome UseAeroCaptionButtons="False" CornerRadius="0" CaptionHeight="32"/>
|
<WindowChrome UseAeroCaptionButtons="False" CornerRadius="0" CaptionHeight="32"/>
|
||||||
|
|
Loading…
Reference in a new issue