Storage - Added migration to clear the DB

Profile - Don't store empty visual scripts
Profile tree - Improved drag & drop
This commit is contained in:
Robert committed 2022-08-04 23:01:27 +02:00
1 parent 73a80ef476
commit e9566ca689
22 files changed
+73 -515

No files matched your search

@@ -10,6 +10,7 @@ using Artemis.UI.Ninject.Factories;
using Artemis.UI.Screens.VisualScripting;
using Artemis.UI.Shared;
using Artemis.UI.Shared.Services;
using Artemis.UI.Shared.Services.NodeEditor;
using Artemis.UI.Shared.Services.ProfileEditor;
using Artemis.UI.Shared.Services.ProfileEditor.Commands;
using Avalonia.Threading;
@@ -72,7 +73,10 @@ public class DataBindingViewModel : ActivatableViewModelBase
public async Task OpenEditor()
{
if (LayerProperty != null && LayerProperty.BaseDataBinding.IsEnabled)
{
await _windowService.ShowDialogAsync<NodeScriptWindowViewModel, bool>(("nodeScript", LayerProperty.BaseDataBinding.Script));
await _profileEditorService.SaveProfileAsync();
}
}
private void Update(object? sender, EventArgs e)