Browse Source

Don't check for library updates when Library menu button is clicked in dev mode.

tags/v2.4.0
Andrew Belt 1 year ago
parent
commit
46063ce16b
1 changed files with 8 additions and 5 deletions
  1. +8
    -5
      src/app/MenuBar.cpp

+ 8
- 5
src/app/MenuBar.cpp View File

@@ -796,12 +796,15 @@ struct LibraryButton : MenuButton {
ui::Menu* menu = createMenu<LibraryMenu>();
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 {


Loading…
Cancel
Save