mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Linux - Fixed a couple small issues
This commit is contained in:
1 parent
04ef4f0173
commit
ddfdbee340
3 files changed
+20
-3
No files matched your search
@@ -287,6 +287,12 @@ public abstract class TreeItemViewModel : ActivatableViewModelBase
|
||||
}
|
||||
|
||||
string[] formats = await Application.Current.Clipboard.GetFormatsAsync();
|
||||
//diogotr7: This can be null on Linux sometimes. I'm not sure why.
|
||||
if (formats == null)
|
||||
{
|
||||
CanPaste = false;
|
||||
return;
|
||||
}
|
||||
CanPaste = formats.Contains(ProfileElementExtensions.ClipboardDataFormat);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user