mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:27:34 +00:00
VideoPlayer: Show current open file in the title
This commit is contained in:
parent
13ac078202
commit
8006bdf6b4
3 changed files with 21 additions and 1 deletions
|
@ -25,11 +25,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto app = TRY(GUI::Application::try_create(arguments));
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
window->set_title("Video Player");
|
||||
window->resize(640, 480);
|
||||
window->set_resizable(true);
|
||||
|
||||
auto main_widget = TRY(window->try_set_main_widget<VideoPlayer::VideoPlayerWidget>(window));
|
||||
main_widget->update_title();
|
||||
|
||||
if (!filename.is_empty())
|
||||
main_widget->open_file(filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue