mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Prerequisites - Fixed install dialog not updating to next action
Prerequisites - Finished download file action Prerequisites - Added extract ZIP action
This commit is contained in:
1 parent
de6edaf565
commit
79894150d9
4 files changed
+128
-38
No files matched your search
@@ -114,7 +114,11 @@ namespace Artemis.UI.Screens.Plugins
|
||||
|
||||
private void ActivateCurrentAction()
|
||||
{
|
||||
ActiveItem = Items.FirstOrDefault(i => i.Action == PluginPrerequisite.CurrentAction);
|
||||
PluginPrerequisiteActionViewModel newActiveItem = Items.FirstOrDefault(i => i.Action == PluginPrerequisite.CurrentAction);
|
||||
if (newActiveItem == null)
|
||||
return;
|
||||
|
||||
ActiveItem = newActiveItem;
|
||||
NotifyOfPropertyChange(nameof(ActiveStemNumber));
|
||||
}
|
||||
|
||||
@@ -123,14 +127,14 @@ namespace Artemis.UI.Screens.Plugins
|
||||
/// <inheritdoc />
|
||||
protected override void OnClose()
|
||||
{
|
||||
PluginPrerequisite.PropertyChanged += PluginPrerequisiteOnPropertyChanged;
|
||||
PluginPrerequisite.PropertyChanged -= PluginPrerequisiteOnPropertyChanged;
|
||||
base.OnClose();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void OnInitialActivate()
|
||||
{
|
||||
PluginPrerequisite.PropertyChanged -= PluginPrerequisiteOnPropertyChanged;
|
||||
PluginPrerequisite.PropertyChanged += PluginPrerequisiteOnPropertyChanged;
|
||||
// Could be slow so take it off of the UI thread
|
||||
Task.Run(() => IsMet = PluginPrerequisite.IsMet());
|
||||
|
||||
|
||||
Reference in new issue
Block a user