1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Fixed Windows Profile (auto) enabling

This commit is contained in:
SpoinkyNL 2016-06-07 01:44:45 +02:00
parent 6436942e47
commit 449c811bde
3 changed files with 8 additions and 6 deletions

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; }

View File

@ -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>

View File

@ -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; }