Skip to content

Commit

Permalink
Merge pull request #1020 from bluepilledgreat/move-some-status-code-t…
Browse files Browse the repository at this point in the history
…o-byfron-dialog

move byfron status code inside of byfron dialog
  • Loading branch information
pizzaboxer authored Feb 2, 2024
2 parents 1da12b5 + 12efad3 commit 27309e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Bloxstrap/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ private void SetStatus(string message)

message = message.Replace("{product}", productName);

// yea idk
if (App.Settings.Prop.BootstrapperStyle == BootstrapperStyle.ByfronDialog)
message = message.Replace("...", "");

if (Dialog is not null)
Dialog.Message = message;
}
Expand Down
6 changes: 5 additions & 1 deletion Bloxstrap/UI/Elements/Bootstrapper/ByfronDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ public string Message
get => _viewModel.Message;
set
{
_viewModel.Message = value;
string message = value;
if (message.EndsWith("..."))
message = message[..^3];

_viewModel.Message = message;
_viewModel.OnPropertyChanged(nameof(_viewModel.Message));
}
}
Expand Down

0 comments on commit 27309e6

Please sign in to comment.