apply correct theme at startup (#7796)

This commit is contained in:
Davide Giacometti 2020-11-03 11:30:19 +01:00 committed by GitHub
parent 4228b9a772
commit 269b12226a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,6 @@ using System.Threading;
using System.Windows.Input;
using ManagedCommon;
using Microsoft.PowerToys.Settings.UI.Library;
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
using PowerLauncher.Helper;
using Wox.Core.Plugin;
using Wox.Infrastructure.Hotkey;
@ -43,6 +42,9 @@ namespace PowerLauncher
// Load initial settings file
OverloadSettings();
// Apply theme at startup
_themeManager.ChangeTheme(_settings.Theme, _settings.Theme == Theme.System);
}
public void CreateSettingsIfNotExists()