From 9b37ec18e81b6395b5130082944899a87132cb76 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Sun, 30 Jun 2024 23:25:57 +0400 Subject: [PATCH] Fix flag export exception bug (#2063) --- Bloxstrap/UI/Elements/Menu/Pages/FastFlagEditorPage.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bloxstrap/UI/Elements/Menu/Pages/FastFlagEditorPage.xaml.cs b/Bloxstrap/UI/Elements/Menu/Pages/FastFlagEditorPage.xaml.cs index 751a79e..9cf3b24 100644 --- a/Bloxstrap/UI/Elements/Menu/Pages/FastFlagEditorPage.xaml.cs +++ b/Bloxstrap/UI/Elements/Menu/Pages/FastFlagEditorPage.xaml.cs @@ -342,7 +342,7 @@ namespace Bloxstrap.UI.Elements.Menu.Pages private void ExportJSONButton_Click(object sender, RoutedEventArgs e) { string json = JsonSerializer.Serialize(App.FastFlags.Prop, new JsonSerializerOptions { WriteIndented = true }); - Clipboard.SetText(json); + Clipboard.SetDataObject(json); Frontend.ShowMessageBox(Bloxstrap.Resources.Strings.Menu_FastFlagEditor_JsonCopiedToClipboard, MessageBoxImage.Information); }