Explorar el Código

Windows build fix try2

Ian Walton hace 1 año
padre
commit
fb66f1e1db
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  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);