Implement or stub assorted functions the VSH is calling

This commit is contained in:
Henrik Rydgård committed 2026-08-21 10:56:06 +02:00
1 parent 4fb5d5965c
commit a0ecf545a6
20 files changed
+117 -15

No files matched your search

+3
View File
@@ -7,6 +7,7 @@
#include "Common/Thread/ThreadUtil.h"
#include "Common/Log.h"
#include "Common/TimeUtil.h"
#include "Common/StringUtils.h"
#include "Core/Loaders.h"
#include "Core/Util/RecentFiles.h"
#include "Core/Util/PathUtil.h"
@@ -129,6 +130,8 @@ void RecentFilesManager::Add(std::string_view filename) {
return;
}
// Some things should not be added to recent, such as the VSH (which will have a separate UI for launching it)
std::lock_guard<std::mutex> guard(cmdLock_);
cmds_.push(RecentCommand{ RecentCmd::Add, {}, std::make_unique<std::string>(filename) });
cmdCondVar_.notify_one();