ui: Change the provider selector from a dropdown to a tab bar

This commit is contained in:
WerWolv
2022-07-30 21:25:18 +02:00
parent 376cf6e8fa
commit 7a4541dac7
7 changed files with 28 additions and 24 deletions

View File

@@ -229,7 +229,7 @@ namespace hex {
if (Task::getRunningTaskCount() > 0)
return;
if (index < s_providers.size()) {
if (index < s_providers.size() && s_currentProvider != index) {
auto oldProvider = get();
s_currentProvider = index;
EventManager::post<EventProviderChanged>(oldProvider, get());