Browse Source

Windows build fix try2

Ian Walton 1 year ago
parent
commit
fb66f1e1db
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/taskbar/TaskbarComponentWin.cpp

+ 3 - 2
src/taskbar/TaskbarComponentWin.cpp

@@ -11,6 +11,7 @@
 #include "PlayerComponent.h"
 #include "input/InputComponent.h"
 #include "settings/SettingsComponent.h"
+#include "settings/SettingsSection.h"
 
 using namespace ABI::Windows::Foundation;
 using namespace ABI::Windows::Media;
@@ -36,8 +37,8 @@ void TaskbarComponentWin::setWindow(QQuickWindow* window)
   qDebug() << "Taskbar initialization started";
   TaskbarComponent::setWindow(window);
 
-  bool EnableTaskbar = SettingsComponent::Get().getSetting("enableWindowsTaskbarIntegration", true).toBool();
-  bool EnableMediaControls = SettingsComponent::Get().getSetting("enableWindowsMediaIntegration", true).toBool();
+  bool EnableTaskbar = SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "enableWindowsTaskbarIntegration", true).toBool();
+  bool EnableMediaControls = SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "enableWindowsMediaIntegration", true).toBool();
 
   if (EnableTaskbar) {
     m_button = new QWinTaskbarButton(m_window);