From cf11876d12e1ac0f79e5edb938bcf295df50b3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Sun, 17 Mar 2024 18:23:47 +0100 Subject: [PATCH] editor: saving scene will be registered to recently used list --- Editor/ContentBrowserWindow.cpp | 2 +- Editor/Editor.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Editor/ContentBrowserWindow.cpp b/Editor/ContentBrowserWindow.cpp index 66a42a450..e163f3897 100644 --- a/Editor/ContentBrowserWindow.cpp +++ b/Editor/ContentBrowserWindow.cpp @@ -210,7 +210,7 @@ void ContentBrowserWindow::RefreshContent() if (!editor->recentFilenames.empty()) { wi::gui::Button& button = folderButtons[SELECTION_RECENT]; - button.Create("Recently Opened"); + button.Create("Recently Used"); button.SetLocalizationEnabled(false); button.SetSize(XMFLOAT2(wid, hei)); button.OnClick([this](wi::gui::EventArgs args) { diff --git a/Editor/Editor.cpp b/Editor/Editor.cpp index dd8132006..bc24b1c44 100644 --- a/Editor/Editor.cpp +++ b/Editor/Editor.cpp @@ -3846,6 +3846,8 @@ void EditorComponent::Save(const std::string& filename) GetCurrentEditorScene().path = filename; RefreshSceneList(); + RegisterRecentlyUsed(filename); + PostSaveText("Scene saved: ", GetCurrentEditorScene().path); } void EditorComponent::SaveAs()