优化代码

This commit is contained in:
liufei
2021-08-20 16:50:24 +08:00
parent 787c23ef77
commit c231587543
6 changed files with 24 additions and 11 deletions

View File

@@ -15,10 +15,10 @@ namespace GeekDesk.Control.Windows
/// </summary>
public partial class ConfigWindow
{
private static AboutControl about = new AboutControl();
private static ThemeControl theme = new ThemeControl();
private static MotionControl motion = new MotionControl();
private static OtherControl other = new OtherControl();
private static readonly AboutControl about = new AboutControl();
private static readonly ThemeControl theme = new ThemeControl();
private static readonly MotionControl motion = new MotionControl();
private static readonly OtherControl other = new OtherControl();
public MainWindow mainWindow;
private ConfigWindow(AppConfig appConfig, MainWindow mainWindow)