diff --git a/plugins/builtin/source/content/providers/disk_provider.cpp b/plugins/builtin/source/content/providers/disk_provider.cpp index d7996635b..6002d5469 100644 --- a/plugins/builtin/source/content/providers/disk_provider.cpp +++ b/plugins/builtin/source/content/providers/disk_provider.cpp @@ -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) {