mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-14 18:30:38 +00:00
SoundPlayer: Set parent window for AboutDialog
This commit is contained in:
parent
cfd1e783a5
commit
c56acba75e
Notes:
sideshowbarker
2024-07-19 08:03:46 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/c56acba75e9 Pull-request: https://github.com/SerenityOS/serenity/pull/1534 Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ int main(int argc, char** argv)
|
|||
}));
|
||||
|
||||
auto help_menu = GUI::Menu::construct("Help");
|
||||
help_menu->add_action(GUI::Action::create("About", [](auto&) {
|
||||
GUI::AboutDialog::show("SoundPlayer", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-sound-player.png"));
|
||||
help_menu->add_action(GUI::Action::create("About", [&](auto&) {
|
||||
GUI::AboutDialog::show("SoundPlayer", Gfx::Bitmap::load_from_file("/res/icons/32x32/app-sound-player.png"), window);
|
||||
}));
|
||||
|
||||
menubar->add_menu(move(app_menu));
|
||||
|
|
Loading…
Reference in a new issue