mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix text overflow in flag import dialog (#608)
This commit is contained in:
parent
c4d3c5b64f
commit
499a0f9861
@ -271,14 +271,17 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
|
||||
|
||||
if (conflictingFlags.Any())
|
||||
{
|
||||
var result = Controls.ShowMessageBox(
|
||||
"Some of the flags you are attempting to import already have set values. Would you like to overwrite their current values with the ones defined in the import?\n" +
|
||||
int count = conflictingFlags.Count();
|
||||
|
||||
string message = "Some of the flags you are attempting to import already have set values. Would you like to overwrite their current values with the ones defined in the import?\n" +
|
||||
"\n" +
|
||||
"Conflicting flags:\n" +
|
||||
String.Join(", ", conflictingFlags),
|
||||
MessageBoxImage.Question,
|
||||
MessageBoxButton.YesNo
|
||||
);
|
||||
$"There are {count} conflicting flag definitions:\n" +
|
||||
String.Join(", ", conflictingFlags.Take(25));
|
||||
|
||||
if (count > 25)
|
||||
message += "...";
|
||||
|
||||
var result = Controls.ShowMessageBox(message, MessageBoxImage.Question, MessageBoxButton.YesNo);
|
||||
|
||||
overwriteConflicting = result == MessageBoxResult.Yes;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user