move byfron status code inside of byfron dialog

also made it only delete the '...' if its at the end of the string
This commit is contained in:
bluepilledgreat 2023-12-08 22:25:56 +00:00
parent 2766d133c6
commit 3fe4fce662
3 changed files with 6 additions and 6 deletions

View File

@ -99,10 +99,6 @@ namespace Bloxstrap
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;
}

View File

@ -26,7 +26,11 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
get => _viewModel.Message;
set
{
_viewModel.Message = value;
string message = value;
if (message.EndsWith("..."))
message = message[..^3];
_viewModel.Message = message;
_viewModel.OnPropertyChanged(nameof(_viewModel.Message));
}
}

View File

@ -14,7 +14,7 @@ namespace Bloxstrap.UI.ViewModels.Bootstrapper
public string Title => App.Settings.Prop.BootstrapperTitle;
public ImageSource Icon { get; set; } = App.Settings.Prop.BootstrapperIcon.GetIcon().GetImageSource();
public string Message { get; set; } = "Please wait...";
public string Message { get; set; } = "Please wait";
public bool ProgressIndeterminate { get; set; } = true;
public int ProgressMaximum { get; set; } = 0;
public int ProgressValue { get; set; } = 0;