From 21cf7d9293f4eeb8227e21938bf0757ff7c11d7a Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 8 Aug 2023 21:17:31 -0400 Subject: [PATCH] Re-enable SyncUpdateItem after library finishes syncing. --- src/app/MenuBar.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/MenuBar.cpp b/src/app/MenuBar.cpp index 0befc13e..927a821e 100644 --- a/src/app/MenuBar.cpp +++ b/src/app/MenuBar.cpp @@ -685,11 +685,16 @@ struct SyncUpdateItem : ui::MenuItem { } void step() override { + disabled = false; + if (library::isSyncing) disabled = true; auto it = library::updateInfos.find(slug); - if (it != library::updateInfos.end()) { + if (it == library::updateInfos.end()) { + disabled = true; + } + else { library::UpdateInfo update = it->second; if (update.minRackVersion != "")