mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Ensure correct buttons are disabled when prompting in UWP.
This commit is contained in:
parent
2a0700e78b
commit
d6ae56b75e
1 changed files with 2 additions and 2 deletions
|
@ -453,10 +453,10 @@ ServoControl::PromptSync(hstring title, hstring message, hstring primaryButton,
|
||||||
dialog.PrimaryButtonText(primaryButton);
|
dialog.PrimaryButtonText(primaryButton);
|
||||||
|
|
||||||
if (secondaryButton.has_value()) {
|
if (secondaryButton.has_value()) {
|
||||||
dialog.IsPrimaryButtonEnabled(true);
|
dialog.IsSecondaryButtonEnabled(true);
|
||||||
dialog.SecondaryButtonText(*secondaryButton);
|
dialog.SecondaryButtonText(*secondaryButton);
|
||||||
} else {
|
} else {
|
||||||
dialog.IsPrimaryButtonEnabled(false);
|
dialog.IsSecondaryButtonEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto titleBlock = Controls::TextBlock();
|
auto titleBlock = Controls::TextBlock();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue