| 55 | } |
| 56 | |
| 57 | void MenuBarWindow::mouseUp(const MouseEvent& /* event */) { |
| 58 | auto menu = m_app->getMenuForIndex(0, "Tray"); |
| 59 | menu.addSeparator(); |
| 60 | menu.addItem("About AudioGridder", [this] { |
| 61 | m_app->showSplashWindow([this](bool isInfo) { |
| 62 | if (isInfo) { |
| 63 | URL("https://audiogridder.com").launchInDefaultBrowser(); |
| 64 | } |
| 65 | m_app->hideSplashWindow(); |
| 66 | }); |
| 67 | #ifdef JUCE_WINDOWS |
| 68 | String info = L"\xa9 2020-2023 Andreas Pohl, https://audiogridder.com"; |
| 69 | #else |
| 70 | String info = L"© 2020-2023 Andreas Pohl, https://audiogridder.com"; |
| 71 | #endif |
| 72 | m_app->setSplashInfo(info); |
| 73 | }); |
| 74 | menu.addItem("Restart", [this] { m_app->prepareShutdown(App::EXIT_RESTART); }); |
| 75 | menu.addItem("Quit", [this] { m_app->prepareShutdown(); }); |
| 76 | #ifdef JUCE_MAC |
| 77 | showDropdownMenu(menu); |
| 78 | #else |
| 79 | menu.show(); |
| 80 | #endif |
| 81 | } |
| 82 | |
| 83 | } // namespace e47 |
nothing calls this directly
no test coverage detected