void MainMenu(Bar& bar) { bar.Sub("Pause", THISFN(PauseMenu)); // There we can't call another function on click here ? bar.Separator(); bar.Add("Exit", [&]{ tray.Break(); }); }
Report message to a moderator