mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
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:
parent
7e4cec3c1a
commit
8d8dcc36c5
2 changed files with 26 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue