Can now drag n drop proejct in project launcher + delete or right click to remove from list

This commit is contained in:
Antoine Pilote
2024-09-17 17:32:05 -04:00
parent 07871123cb
commit ef0fde5847
3 changed files with 76 additions and 23 deletions

View File

@@ -42,6 +42,8 @@ namespace Nuake
int32_t SelectedProject = -1;
std::vector<ProjectPreview> _Projects;
std::string queuedProjectPath;
std::string queuedRemovalPath;
public:
WelcomeWindow(Nuake::EditorInterface* editor);
~WelcomeWindow() = default;
@@ -50,6 +52,9 @@ namespace Nuake
bool IsProjectQueued() const { return !queuedProjectPath.empty(); };
void LoadQueuedProject();
void ImportProject(const std::string& file);
private:
void DrawRecentProjectsSection();
void DrawProjectItem(const uint32_t projectPreview);