Fixed Windows Profile (auto) enabling

This commit is contained in:
SpoinkyNL committed 2016-06-07 01:44:45 +02:00
1 parent 6436942e47
commit 449c811bde
3 files changed
+4 -2

No files matched your search

+1
View File
@@ -31,6 +31,7 @@ namespace Artemis.Models
// Called every frame
public abstract void Update();
// Used by profile system
public IDataModel DataModel { get; set; }
public ProfileModel Profile { get; set; }
@@ -34,9 +34,9 @@
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Label Content="Enable effect" Margin="0 3 0 0" HorizontalAlignment="Right" />
<ToggleButton x:Name="EffectEnabled" Margin="0 3 0 0" Width="25" Height="25"
IsChecked="{Binding Path=GameSettings.Enabled, Mode=TwoWay}"
Style="{DynamicResource MetroCircleToggleButtonStyle}"
cal:Message.Attach="[Event Click] = [Action ToggleEffect]" />
cal:Message.Attach="[Event Click] = [Action ToggleEffect]"
ToolTip="Note: You can't enable an effect when Artemis is disabled" />
</StackPanel>
</StackPanel>
@@ -25,6 +25,7 @@ namespace Artemis.Modules.Effects.WindowsProfile
((WindowsProfileSettings)EffectSettings).LastProfile);
ProfilePreviewModel.Profile = ProfileEditor.SelectedProfile;
ProfileEditor.PropertyChanged += ProfileUpdater;
MainManager.EffectManager.EffectModels.Add(EffectModel);
}
public ProfileEditorViewModel ProfileEditor { get; set; }