fix: Disk provider slowing down loading of ImHex

This commit is contained in:
WerWolv 2022-09-11 21:06:15 +02:00
parent 91160b4311
commit 3a1c0f8d66
1 changed files with 4 additions and 1 deletions

View File

@ -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) {