impr: Disable close provider button when tasks are running
This commit is contained in:
parent
5bc8e5c57c
commit
6ee1e72021
@ -554,9 +554,11 @@ namespace hex {
|
||||
}
|
||||
|
||||
if (auto provider = ImHexApi::Provider::get(); provider != nullptr) {
|
||||
ImGui::BeginDisabled(TaskManager::getRunningTaskCount() > 0);
|
||||
if (ImGui::CloseButton(ImGui::GetID("ProviderCloseButton"), ImGui::GetCursorScreenPos() + ImVec2(ImGui::GetContentRegionAvail().x - 17_scaled, 3_scaled))) {
|
||||
ImHexApi::Provider::remove(provider);
|
||||
}
|
||||
ImGui::EndDisabled();
|
||||
}
|
||||
|
||||
ImGui::EndMenuBar();
|
||||
|
Loading…
x
Reference in New Issue
Block a user