FIX: fix a crash, set APP_MODAL for dialog

Change-Id: I80d216df134febdcefd2fd5f3859bdb62c1b81bd
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-11-03 10:12:31 +08:00 committed by Lane.Wei
parent 7e4cec3c1a
commit 8d8dcc36c5
2 changed files with 26 additions and 22 deletions

View file

@ -300,7 +300,7 @@ void MachineObject::set_access_code(std::string code)
bool MachineObject::is_lan_mode_printer()
{
bool result = false;
if (connection_type() == "lan")
if (!dev_connection_type.empty() && dev_connection_type == "lan")
return true;
return result;
}