| 967 | } |
| 968 | |
| 969 | void step() override { |
| 970 | notification->box.pos = math::Vec(0, 0); |
| 971 | notification->visible = library::hasUpdates(); |
| 972 | |
| 973 | // Popup when updates finish downloading |
| 974 | if (library::restartRequested) { |
| 975 | library::restartRequested = false; |
| 976 | if (osdialog_message(OSDIALOG_INFO, OSDIALOG_OK_CANCEL, string::translate("MenuBar.library.restart").c_str())) { |
| 977 | APP->window->close(); |
| 978 | settings::restart = true; |
| 979 | } |
| 980 | } |
| 981 | |
| 982 | MenuButton::step(); |
| 983 | } |
| 984 | }; |
| 985 | |
| 986 |
nothing calls this directly
no test coverage detected