From 46063ce16bc91ace7c5e68b9470b40a15fc90131 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 9 Mar 2023 00:15:40 -0500 Subject: [PATCH] Don't check for library updates when Library menu button is clicked in dev mode. --- src/app/MenuBar.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/app/MenuBar.cpp b/src/app/MenuBar.cpp index 5dec2a77..42958ff8 100644 --- a/src/app/MenuBar.cpp +++ b/src/app/MenuBar.cpp @@ -796,12 +796,15 @@ struct LibraryButton : MenuButton { ui::Menu* menu = createMenu(); menu->cornerFlags = BND_CORNER_TOP; menu->box.pos = getAbsoluteOffset(math::Vec(0, box.size.y)); + // Check for updates when menu is opened - std::thread t([&]() { - system::setThreadName("Library"); - library::checkUpdates(); - }); - t.detach(); + if (!settings::devMode) { + std::thread t([&]() { + system::setThreadName("Library"); + library::checkUpdates(); + }); + t.detach(); + } } void step() override {