mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
fix models list reload after USB mass storage connection (#5963)
This commit is contained in:
parent
60423b81ad
commit
6595bcfc3c
2 changed files with 6 additions and 0 deletions
|
@ -293,6 +293,7 @@ void ModelsList::clear()
|
||||||
delete *it;
|
delete *it;
|
||||||
}
|
}
|
||||||
categories.clear();
|
categories.clear();
|
||||||
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ModelsList::load()
|
bool ModelsList::load()
|
||||||
|
|
|
@ -207,6 +207,11 @@ void storageReadAll()
|
||||||
createModel();
|
createModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Wipe models list in case
|
||||||
|
// it's being reloaded after USB connection
|
||||||
|
modelslist.clear();
|
||||||
|
|
||||||
|
// and reload the list
|
||||||
modelslist.load();
|
modelslist.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue