MCPcopy Create free account
hub / github.com/apohl79/audiogridder / mouseUp

Method mouseUp

Server/Source/MenuBarWindow.cpp:57–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void 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

Callers

nothing calls this directly

Calls 6

showSplashWindowMethod · 0.80
hideSplashWindowMethod · 0.80
setSplashInfoMethod · 0.80
prepareShutdownMethod · 0.80
showMethod · 0.80
getMenuForIndexMethod · 0.45

Tested by

no test coverage detected