FIX:fixed UI display error in the monitor page

fixed STUDIO-3754

Change-Id: I96f9e52a9924b7f34e8e6ac7139ca70514af79ae
This commit is contained in:
tao wang 2023-07-27 15:02:32 +08:00 committed by Lane.Wei
parent 8c29a57be4
commit e9182b2d1d
1 changed files with 3 additions and 1 deletions

View File

@ -1149,6 +1149,7 @@ void MainFrame::show_device(bool bBBLPrinter) {
if (bBBLPrinter) {
if (m_tabpanel->GetPage(tpMonitor) != m_monitor) {
m_printer_view->Hide();
m_monitor->Show(true);
m_tabpanel->RemovePage(tpMonitor);
m_tabpanel->InsertPage(tpMonitor, m_monitor, _L("Device"),
std::string("tab_monitor_active"),
@ -1158,6 +1159,7 @@ void MainFrame::show_device(bool bBBLPrinter) {
} else {
if (m_tabpanel->GetPage(tpMonitor) != m_printer_view) {
m_printer_view->Show();
m_monitor->Show(false);
m_tabpanel->RemovePage(tpMonitor);
m_tabpanel->InsertPage(tpMonitor, m_printer_view, _L("Device"),
std::string("tab_monitor_active"),