diff --git a/src/MaaWpfGui/Configuration/Factory/ConfigFactory.cs b/src/MaaWpfGui/Configuration/Factory/ConfigFactory.cs index d20a45d592..5ff9f95cfb 100644 --- a/src/MaaWpfGui/Configuration/Factory/ConfigFactory.cs +++ b/src/MaaWpfGui/Configuration/Factory/ConfigFactory.cs @@ -23,7 +23,6 @@ using System.Text.Json.Serialization; using System.Text.Unicode; using System.Threading; using System.Threading.Tasks; -using MaaWpfGui.Configuration.Global; using MaaWpfGui.Configuration.Single; using MaaWpfGui.Helper; using ObservableCollections; @@ -143,7 +142,7 @@ namespace MaaWpfGui.Configuration.Factory OnPropertyChanged("Root.Configurations", null, null); }; - parsed.Timers.CollectionChanged += OnCollectionChangedFactory("Root.Timers."); + parsed.Timers.CollectionChanged += OnCollectionChangedFactory("Root.Timers."); parsed.VersionUpdate.PropertyChanged += OnPropertyChangedFactory(); parsed.AnnouncementInfo.PropertyChanged += OnPropertyChangedFactory(); parsed.GUI.PropertyChanged += OnPropertyChangedFactory(); diff --git a/src/MaaWpfGui/Configuration/Global/AnnouncementInfo.cs b/src/MaaWpfGui/Configuration/Global/AnnouncementInfo.cs index 3e923aad5f..136a8a9c71 100644 --- a/src/MaaWpfGui/Configuration/Global/AnnouncementInfo.cs +++ b/src/MaaWpfGui/Configuration/Global/AnnouncementInfo.cs @@ -12,6 +12,7 @@ // using System.ComponentModel; +using MaaWpfGui.Configuration.Factory; namespace MaaWpfGui.Configuration.Global { diff --git a/src/MaaWpfGui/Configuration/Global/GUI.cs b/src/MaaWpfGui/Configuration/Global/GUI.cs index 76fb698297..1a05ee7aa8 100644 --- a/src/MaaWpfGui/Configuration/Global/GUI.cs +++ b/src/MaaWpfGui/Configuration/Global/GUI.cs @@ -12,6 +12,7 @@ // using System.ComponentModel; +using MaaWpfGui.Configuration.Factory; using MaaWpfGui.Helper; using MaaWpfGui.Models; diff --git a/src/MaaWpfGui/Configuration/Global/VersionUpdate.cs b/src/MaaWpfGui/Configuration/Global/VersionUpdate.cs index bba1262b6c..ab2350f4ca 100644 --- a/src/MaaWpfGui/Configuration/Global/VersionUpdate.cs +++ b/src/MaaWpfGui/Configuration/Global/VersionUpdate.cs @@ -13,6 +13,7 @@ #nullable enable using System.ComponentModel; +using MaaWpfGui.Configuration.Factory; namespace MaaWpfGui.Configuration.Global {