| 952 | } |
| 953 | |
| 954 | void onAction(const ActionEvent& e) override { |
| 955 | ui::Menu* menu = createMenu<LibraryMenu>(); |
| 956 | menu->cornerFlags = BND_CORNER_TOP; |
| 957 | menu->box.pos = getAbsoluteOffset(math::Vec(0, box.size.y)); |
| 958 | |
| 959 | // Check for updates when menu is opened |
| 960 | if (!settings::devMode) { |
| 961 | std::thread t([&]() { |
| 962 | system::setThreadName(string::translate("MenuBar.library")); |
| 963 | library::checkUpdates(); |
| 964 | }); |
| 965 | t.detach(); |
| 966 | } |
| 967 | } |
| 968 | |
| 969 | void step() override { |
| 970 | notification->box.pos = math::Vec(0, 0); |
nothing calls this directly
no test coverage detected