void SwitchMonitor::loadSwitchMonitors() { getAllMonitors(); if (m_ScreenList.length() > 1) { resizeParent(); initMonitorItems(); initScreenMode(); } else { // if just 1 screen , quit the app immediately deleteOsd(); } }
bool SwitchMonitor::isPanelVailed() { getAllMonitors(); return m_ScreenList.length() > 1; }