mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Scripting - Enabled scripting (#638)
* Scripting - Simplified view model structure * Scripting - Removed Layer and LayerProperty scripts
This commit is contained in:
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()
|
||||
|
||||
Reference in new issue
Block a user