mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 21:58:03 -06:00
Fix of saving the 3DConnexion status on OSX.
Fixes 2.2.0 RC2 - 3Dconnexion settings not saved / Zoom digital (#3791)
This commit is contained in:
parent
6723b5f3cd
commit
ec75b760b8
2 changed files with 10 additions and 4 deletions
|
@ -152,6 +152,8 @@ static void DeviceAdded(uint32_t unused)
|
|||
static void DeviceRemoved(uint32_t unused)
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(info) << "3dx device removed\n";
|
||||
assert(m_connected);
|
||||
assert(! m_device_str.empty());
|
||||
mouse_3d_controller->disconnected();
|
||||
}
|
||||
|
||||
|
@ -214,6 +216,8 @@ void Mouse3DController::shutdown()
|
|||
CleanupConnexionHandlers();
|
||||
unload_driver();
|
||||
}
|
||||
// Copy the current parameters to parameter database, mark the device as disconnected.
|
||||
this->disconnected();
|
||||
mouse_3d_controller = nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue