mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11: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())
|
if (conflictingFlags.Any())
|
||||||
{
|
{
|
||||||
var result = Controls.ShowMessageBox(
|
int count = conflictingFlags.Count();
|
||||||
"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" +
|
|
||||||
|
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" +
|
"\n" +
|
||||||
"Conflicting flags:\n" +
|
$"There are {count} conflicting flag definitions:\n" +
|
||||||
String.Join(", ", conflictingFlags),
|
String.Join(", ", conflictingFlags.Take(25));
|
||||||
MessageBoxImage.Question,
|
|
||||||
MessageBoxButton.YesNo
|
if (count > 25)
|
||||||
);
|
message += "...";
|
||||||
|
|
||||||
|
var result = Controls.ShowMessageBox(message, MessageBoxImage.Question, MessageBoxButton.YesNo);
|
||||||
|
|
||||||
overwriteConflicting = result == MessageBoxResult.Yes;
|
overwriteConflicting = result == MessageBoxResult.Yes;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user