This guarantees we get the newest state. Should not be needed, bit will help if there is a problem with this.
@@ -318,6 +318,12 @@ void DisplayComponent::switchCommand(QString command)
return;
}
+ if (!initializeDisplayManager())
+ {
+ QLOG_ERROR() << "Could not reinitialize display manager";
+ return;
+ }
+
int currentDisplay = getApplicationDisplay();
if (currentDisplay < 0)
{