|
@@ -2,6 +2,7 @@
|
|
#include "QsLog.h"
|
|
#include "QsLog.h"
|
|
#include "DisplayComponent.h"
|
|
#include "DisplayComponent.h"
|
|
#include "DisplayManager.h"
|
|
#include "DisplayManager.h"
|
|
|
|
+#include "settings/SettingsComponent.h"
|
|
#include <QGuiApplication>
|
|
#include <QGuiApplication>
|
|
#include <QWindow>
|
|
#include <QWindow>
|
|
|
|
|
|
@@ -143,6 +144,12 @@ bool DisplayComponent::switchToBestOverallVideoMode(int display)
|
|
if (!m_displayManager || !m_displayManager->isValidDisplay(display))
|
|
if (!m_displayManager || !m_displayManager->isValidDisplay(display))
|
|
return false;
|
|
return false;
|
|
|
|
|
|
|
|
+ if (!SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "hdmi_poweron").toBool())
|
|
|
|
+ {
|
|
|
|
+ QLOG_INFO() << "Switching to best mode disabled.";
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+
|
|
int bestmode = m_displayManager->findBestMode(display);
|
|
int bestmode = m_displayManager->findBestMode(display);
|
|
if (bestmode < 0)
|
|
if (bestmode < 0)
|
|
return false;
|
|
return false;
|