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 authored and Lane.Wei committed 2022-11-07 19:59:23 +08:00
1 parent 7e4cec3c1a
commit 8d8dcc36c5
2 files changed
+26 -22

No files matched your search

+1 -1
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;
}