mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Profile editor - Removed layer outline, increasing performance by a lot Device visualizer - Streamlined custom Device providers - Added debug device provider ASUS - Added Maximus X Hero thanks @copystring Plugin core - Added PerLedLayerBrush Noise layer - Converted to PerLedLayerBrush, increasing performance and quality
25 lines
737 B
C#
25 lines
737 B
C#
using Artemis.Core.Plugins.Abstract.ViewModels;
|
|
using MaterialDesignThemes.Wpf;
|
|
using Stylet;
|
|
|
|
namespace Artemis.UI.Screens.Settings.Tabs.Plugins
|
|
{
|
|
public class PluginSettingsWindowViewModel : Conductor<PluginConfigurationViewModel>
|
|
{
|
|
public PackIconKind Icon { get; }
|
|
|
|
public PluginSettingsWindowViewModel(PluginConfigurationViewModel configurationViewModel, PackIconKind icon)
|
|
{
|
|
Icon = icon;
|
|
ActiveItem = configurationViewModel;
|
|
|
|
ActiveItem.Closed += ActiveItemOnClosed;
|
|
}
|
|
|
|
private void ActiveItemOnClosed(object? sender, CloseEventArgs e)
|
|
{
|
|
ActiveItem.Closed -= ActiveItemOnClosed;
|
|
RequestClose();
|
|
}
|
|
}
|
|
} |