mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix clipboard crashes
This commit is contained in:
parent
08ae14222b
commit
23a08f30c4
1 changed files with 4 additions and 3 deletions
|
|
@ -874,8 +874,9 @@ public partial class ModEditWindow
|
|||
{
|
||||
if( ImGui.Button( "Add from Clipboard" ) )
|
||||
{
|
||||
var clipboard = ImGui.GetClipboardText();
|
||||
var version = Functions.FromCompressedBase64< MetaManipulation[] >( clipboard, out var manips );
|
||||
var clipboard = ImGuiUtil.GetClipboardText();
|
||||
|
||||
var version = Functions.FromCompressedBase64< MetaManipulation[] >( clipboard, out var manips );
|
||||
if( version == MetaManipulation.CurrentVersion && manips != null )
|
||||
{
|
||||
foreach( var manip in manips )
|
||||
|
|
@ -893,7 +894,7 @@ public partial class ModEditWindow
|
|||
{
|
||||
if( ImGui.Button( "Set from Clipboard" ) )
|
||||
{
|
||||
var clipboard = ImGui.GetClipboardText();
|
||||
var clipboard = ImGuiUtil.GetClipboardText();
|
||||
var version = Functions.FromCompressedBase64< MetaManipulation[] >( clipboard, out var manips );
|
||||
if( version == MetaManipulation.CurrentVersion && manips != null )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue