Scripting - Enabled scripting (#638)

* Scripting - Simplified view model structure
* Scripting - Removed Layer and LayerProperty scripts
This commit is contained in:
Robert Beekman authored and GitHub committed 2021-07-04 11:45:32 +02:00
1 parent ee16d69fb3
commit 631d8de2c3
26 files changed
+278 -578

No files matched your search

@@ -154,7 +154,7 @@ namespace Artemis.UI.Screens.Sidebar
VistaOpenFileDialog dialog = new()
{
Filter = "Artemis Profile|*.json",
Title = "Export Artemis profile"
Title = "Import Artemis profile"
};
bool? result = dialog.ShowDialog();
if (result != true)
@@ -92,9 +92,8 @@ namespace Artemis.UI.Screens.Sidebar
ProfileConfigurationExportModel profileConfigurationExportModel = _profileService.ExportProfile(ProfileConfiguration);
string json = JsonConvert.SerializeObject(profileConfigurationExportModel, IProfileService.ExportSettings);
if (!dialog.FileName.EndsWith(".json"))
dialog.FileName += ".json";
await File.WriteAllTextAsync(dialog.FileName, json);
string path = Path.ChangeExtension(dialog.FileName, ".json");
await File.WriteAllTextAsync(path, json);
}
public void Duplicate()