mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Automatically refresh filebrowser on window focus, and preserve path after scanning
This commit is contained in:
@@ -34,6 +34,8 @@
|
||||
#include "../Actions/EditorSelection.h"
|
||||
#include "FileSystemUI.h"
|
||||
|
||||
#include <src/FileSystem/Directory.h>
|
||||
|
||||
#include "../Misc/InterfaceFonts.h"
|
||||
|
||||
#include "WelcomeWindow.h"
|
||||
@@ -3177,6 +3179,12 @@ namespace Nuake {
|
||||
mCommandBuffer->PushCommand(command);
|
||||
}
|
||||
|
||||
void EditorInterface::OnWindowFocused()
|
||||
{
|
||||
filesystem->Scan();
|
||||
|
||||
}
|
||||
|
||||
bool EditorInterface::LoadProject(const std::string& projectPath)
|
||||
{
|
||||
FileSystem::SetRootDirectory(FileSystem::GetParentPath(projectPath));
|
||||
|
||||
Reference in New Issue
Block a user