mirror of https://github.com/WerWolv/ImHex.git
fix: Disk provider slowing down loading of ImHex
This commit is contained in:
parent
91160b4311
commit
3a1c0f8d66
|
@ -32,7 +32,7 @@
|
|||
namespace hex::plugin::builtin::prv {
|
||||
|
||||
DiskProvider::DiskProvider() : Provider() {
|
||||
this->reloadDrives();
|
||||
|
||||
}
|
||||
|
||||
bool DiskProvider::isAvailable() const {
|
||||
|
@ -318,6 +318,9 @@ namespace hex::plugin::builtin::prv {
|
|||
void DiskProvider::drawLoadInterface() {
|
||||
#if defined(OS_WINDOWS)
|
||||
|
||||
if (this->m_availableDrives.empty())
|
||||
this->reloadDrives();
|
||||
|
||||
if (ImGui::BeginListBox("hex.builtin.provider.disk.selected_disk"_lang)) {
|
||||
|
||||
for (const auto &drive : this->m_availableDrives) {
|
||||
|
|
Loading…
Reference in New Issue