mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 07:10:40 +01:00
[usb] Enable the USB core on calculator plugged.
Change-Id: I5b8ab068936524e775bb77a4569a2601e5a9844a
This commit is contained in:
@@ -12,6 +12,9 @@ USBTimer::USBTimer(AppsContainer * container) :
|
||||
bool USBTimer::fire() {
|
||||
bool needRedrawing = false;
|
||||
if (Ion::USB::isPlugged()) {
|
||||
if (!m_previousPluggedState) {
|
||||
Ion::USB::removeSoftDisconnect();
|
||||
}
|
||||
if (!m_previousPluggedState && GlobalPreferences::sharedGlobalPreferences()->examMode() == GlobalPreferences::ExamMode::Activate) {
|
||||
m_container->displayExamModePopUp(false);
|
||||
needRedrawing = true;
|
||||
|
||||
Reference in New Issue
Block a user