Browse Source

Re-enable SyncUpdateItem after library finishes syncing.

tags/v2.4.1
Andrew Belt 1 year ago
parent
commit
21cf7d9293
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/app/MenuBar.cpp

+ 6
- 1
src/app/MenuBar.cpp View File

@@ -685,11 +685,16 @@ struct SyncUpdateItem : ui::MenuItem {
} }


void step() override { void step() override {
disabled = false;

if (library::isSyncing) if (library::isSyncing)
disabled = true; disabled = true;


auto it = library::updateInfos.find(slug); auto it = library::updateInfos.find(slug);
if (it != library::updateInfos.end()) {
if (it == library::updateInfos.end()) {
disabled = true;
}
else {
library::UpdateInfo update = it->second; library::UpdateInfo update = it->second;


if (update.minRackVersion != "") if (update.minRackVersion != "")


Loading…
Cancel
Save