mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix message box vertically center issue when message type is not OK
This commit is contained in:
parent
b924a79ccb
commit
890b115b37
1 changed files with 2 additions and 1 deletions
|
|
@ -37,8 +37,9 @@ namespace Flow.Launcher
|
|||
try
|
||||
{
|
||||
msgBox = new MessageBoxEx(button);
|
||||
if (caption == string.Empty && button == MessageBoxButton.OK && icon == MessageBoxImage.None)
|
||||
if (caption == string.Empty && icon == MessageBoxImage.None)
|
||||
{
|
||||
// If there is no caption and no icon, use DescOnlyTextBlock for vertically centered text
|
||||
msgBox.Title = messageBoxText;
|
||||
msgBox.DescOnlyTextBlock.Visibility = Visibility.Visible;
|
||||
msgBox.DescOnlyTextBlock.Text = messageBoxText;
|
||||
|
|
|
|||
Loading…
Reference in a new issue