Can now drag n drop proejct in project launcher + delete or right click to remove from list
This commit is contained in:
@@ -3297,9 +3297,10 @@ namespace Nuake {
|
||||
|
||||
void EditorInterface::OnDragNDrop(const std::vector<std::string>& paths)
|
||||
{
|
||||
if (Engine::GetProject())
|
||||
const bool isProjectLoaded = Engine::GetProject() != nullptr;
|
||||
for (const auto& path : paths)
|
||||
{
|
||||
for (const auto& path : paths)
|
||||
if (isProjectLoaded)
|
||||
{
|
||||
if (!FileSystem::FileExists(path, true))
|
||||
{
|
||||
@@ -3313,6 +3314,10 @@ namespace Nuake {
|
||||
|
||||
FileSystem::CopyFileAbsolute(path, FileSystemUI::m_CurrentDirectory->GetFullPath());
|
||||
}
|
||||
else
|
||||
{
|
||||
_WelcomeWindow->ImportProject(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user