mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
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:
parent
2766d133c6
commit
3fe4fce662
@ -99,10 +99,6 @@ namespace Bloxstrap
|
|||||||
|
|
||||||
message = message.Replace("{product}", productName);
|
message = message.Replace("{product}", productName);
|
||||||
|
|
||||||
// yea idk
|
|
||||||
if (App.Settings.Prop.BootstrapperStyle == BootstrapperStyle.ByfronDialog)
|
|
||||||
message = message.Replace("...", "");
|
|
||||||
|
|
||||||
if (Dialog is not null)
|
if (Dialog is not null)
|
||||||
Dialog.Message = message;
|
Dialog.Message = message;
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,11 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
|||||||
get => _viewModel.Message;
|
get => _viewModel.Message;
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
_viewModel.Message = value;
|
string message = value;
|
||||||
|
if (message.EndsWith("..."))
|
||||||
|
message = message[..^3];
|
||||||
|
|
||||||
|
_viewModel.Message = message;
|
||||||
_viewModel.OnPropertyChanged(nameof(_viewModel.Message));
|
_viewModel.OnPropertyChanged(nameof(_viewModel.Message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ namespace Bloxstrap.UI.ViewModels.Bootstrapper
|
|||||||
|
|
||||||
public string Title => App.Settings.Prop.BootstrapperTitle;
|
public string Title => App.Settings.Prop.BootstrapperTitle;
|
||||||
public ImageSource Icon { get; set; } = App.Settings.Prop.BootstrapperIcon.GetIcon().GetImageSource();
|
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 bool ProgressIndeterminate { get; set; } = true;
|
||||||
public int ProgressMaximum { get; set; } = 0;
|
public int ProgressMaximum { get; set; } = 0;
|
||||||
public int ProgressValue { get; set; } = 0;
|
public int ProgressValue { get; set; } = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user