mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
This feature allows any application to easily install an automatically updating list of recently open files in a GUI::Menu. There are three main pieces to this mechanism: - GUI::Application::set_config_domain(domain): This must be called before using the recent files feature. It informs the Application object about which config domain to find the relevant RecentFiles list under. - GUI::Menu::add_recently_open_files(callback): This inserts the list in a menu. A callback must be provided to handle actually opening the recent file in some application-specific way. - GUI::Application::set_most_recently_open_file(path): This updates the list of recently open files, both in the configuration files, and in the GUI menu.
6.9 KiB
6.9 KiB