1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

HackStudio: Replace custom recent-project management with the LibGUI one

The only downside is we are limited to 4 recent projects now. LibGUI
currently relies on the number of recent files being constexpr, so that
will take some more work to make it variable.
This commit is contained in:
Sam Atkins 2024-01-19 17:00:19 +00:00 committed by Sam Atkins
parent 343de324db
commit 315c95a1ce
3 changed files with 7 additions and 35 deletions

View file

@ -2,6 +2,7 @@
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2020-2022, Itamar S. <itamar8910@gmail.com>
* Copyright (c) 2020-2021, the SerenityOS developers.
* Copyright (c) 2024, Sam Atkins <atkinssj@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -86,8 +87,6 @@ public:
void update_window_title();
private:
static constexpr size_t recent_projects_history_size = 15;
static ByteString get_full_path_of_serenity_source(ByteString const& file);
ByteString get_absolute_path(ByteString const&) const;
Vector<ByteString> selected_file_paths() const;
@ -149,7 +148,6 @@ private:
void create_toolbar(GUI::Widget& parent);
ErrorOr<void> create_action_tab(GUI::Widget& parent);
ErrorOr<void> create_file_menu(GUI::Window&);
void update_recent_projects_submenu();
ErrorOr<void> create_edit_menu(GUI::Window&);
void create_build_menu(GUI::Window&);
ErrorOr<void> create_view_menu(GUI::Window&);