|
@@ -155,16 +155,6 @@ internal partial class HelloTherePopup : PixiEditorPopup
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private async Task OpenBetaExample(BetaExampleFile? arg)
|
|
|
- {
|
|
|
- await using var stream = arg.GetStream();
|
|
|
-
|
|
|
- var bytes = new byte[stream.Length];
|
|
|
- await stream.ReadExactlyAsync(bytes);
|
|
|
-
|
|
|
- FileViewModel.OpenRecoveredDotPixi(null, bytes);
|
|
|
- }
|
|
|
-
|
|
|
private static void NewsPanelCollapsedChangedCallback(AvaloniaPropertyChangedEventArgs<bool> e)
|
|
|
{
|
|
|
HelloTherePopup helloTherePopup = (HelloTherePopup)e.Sender;
|
|
@@ -205,6 +195,19 @@ internal partial class HelloTherePopup : PixiEditorPopup
|
|
|
await FileViewModel.CreateFromNewFileDialog();
|
|
|
}
|
|
|
|
|
|
+ private async Task OpenBetaExample(BetaExampleFile? arg)
|
|
|
+ {
|
|
|
+ await using var stream = arg.GetStream();
|
|
|
+
|
|
|
+ var bytes = new byte[stream.Length];
|
|
|
+ await stream.ReadExactlyAsync(bytes);
|
|
|
+
|
|
|
+ Application.Current.ForDesktopMainWindow(mainWindow => mainWindow.Activate());
|
|
|
+ Close();
|
|
|
+
|
|
|
+ FileViewModel.OpenRecoveredDotPixi(null, bytes);
|
|
|
+ }
|
|
|
+
|
|
|
private void OpenRecent(string parameter)
|
|
|
{
|
|
|
Application.Current.ForDesktopMainWindow(mainWindow => mainWindow.Activate());
|