mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Fixed a crash when minimizing
Test brush respects opacity setting
This commit is contained in:
1 parent
3975df2dd2
commit
9367f07189
5 files changed
+50
-31
No files matched your search
@@ -146,7 +146,7 @@ namespace Artemis.UI.Screens.Module.ProfileEditor
|
||||
protected override void OnActivate()
|
||||
{
|
||||
LoadWorkspaceSettings();
|
||||
Task.Run(() => LoadProfiles());
|
||||
Task.Run(LoadProfiles);
|
||||
base.OnActivate();
|
||||
}
|
||||
|
||||
@@ -184,15 +184,17 @@ namespace Artemis.UI.Screens.Module.ProfileEditor
|
||||
profiles.Add(activeProfile);
|
||||
|
||||
// Populate the UI collection
|
||||
Profiles.Clear();
|
||||
Profiles.AddRange(profiles.OrderBy(p => p.Name));
|
||||
Execute.PostToUIThread(() =>
|
||||
{
|
||||
Profiles.Clear();
|
||||
Profiles.AddRange(profiles.OrderBy(p => p.Name));
|
||||
SelectedProfile = activeProfile;
|
||||
|
||||
SelectedProfile = activeProfile;
|
||||
_profileEditorService.ChangeSelectedProfile(SelectedProfile);
|
||||
if (!activeProfile.IsActivated)
|
||||
_profileService.ActivateProfile(Module, activeProfile);
|
||||
});
|
||||
|
||||
_profileEditorService.ChangeSelectedProfile(SelectedProfile);
|
||||
|
||||
if (!activeProfile.IsActivated)
|
||||
_profileService.ActivateProfile(Module, activeProfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user