From 898ed19f2953a1af768aa5537a00263cdbd92759 Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 9 Sep 2023 13:42:46 +0200 Subject: [PATCH] Profile Editor - Fixed transforms breaking when hitting play --- .../ProfileEditor/Panels/Playback/PlaybackViewModel.cs | 3 ++- src/Artemis.WebClient.Workshop/WorkshopConstants.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Artemis.UI/Screens/ProfileEditor/Panels/Playback/PlaybackViewModel.cs b/src/Artemis.UI/Screens/ProfileEditor/Panels/Playback/PlaybackViewModel.cs index 5e91ae70f..9f6009934 100644 --- a/src/Artemis.UI/Screens/ProfileEditor/Panels/Playback/PlaybackViewModel.cs +++ b/src/Artemis.UI/Screens/ProfileEditor/Panels/Playback/PlaybackViewModel.cs @@ -7,6 +7,7 @@ using Artemis.Core; using Artemis.Core.Services; using Artemis.UI.Shared; using Artemis.UI.Shared.Services.ProfileEditor; +using Avalonia.Threading; using ReactiveUI; namespace Artemis.UI.Screens.ProfileEditor.Playback; @@ -237,7 +238,7 @@ public class PlaybackViewModel : ActivatableViewModelBase } } - _profileEditorService.ChangeTime(newTime); + Dispatcher.UIThread.Invoke(() => _profileEditorService.ChangeTime(newTime)); } finally { diff --git a/src/Artemis.WebClient.Workshop/WorkshopConstants.cs b/src/Artemis.WebClient.Workshop/WorkshopConstants.cs index 1dcfa737d..192a92b56 100644 --- a/src/Artemis.WebClient.Workshop/WorkshopConstants.cs +++ b/src/Artemis.WebClient.Workshop/WorkshopConstants.cs @@ -2,7 +2,7 @@ namespace Artemis.WebClient.Workshop; public static class WorkshopConstants { - public const string AUTHORITY_URL = "https://localhost:5001"; - public const string WORKSHOP_URL = "https://localhost:7281"; + public const string AUTHORITY_URL = "https://identity.artemis-rgb.com"; + public const string WORKSHOP_URL = "https://workshop.artemis-rgb.com"; public const string WORKSHOP_CLIENT_NAME = "WorkshopApiClient"; } \ No newline at end of file