Fix wasm deployment issue (#827)
* fix: update wasm-tools installation * fix: add TrimmerRootAssembly for WASM optimization * fix: update project to target .NET 10 and adjust deployment settings * fix: add TrimmerRootAssembly for Ursa.Demo to improve WASM optimization * fix: avoid Window based dialog crash on non-supported platforms.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
using Avalonia.Markup.Xaml.MarkupExtensions;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Ursa.Controls;
|
||||
@@ -126,6 +127,12 @@ public class MessageBoxDemoViewModel: ObservableObject
|
||||
}
|
||||
else
|
||||
{
|
||||
if (OperatingSystem.IsBrowser() || OperatingSystem.IsAndroid() || OperatingSystem.IsIOS())
|
||||
{
|
||||
await MessageBox.ShowOverlayAsync("Only overlay message box is supported on this platform.",
|
||||
"Ursa MessageBox", button: MessageBoxButton.OK, icon: MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
Result = await MessageBox.ShowAsync(_message, _title, icon: SelectedIcon, button:button);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user