From 8028545612b757d688e1b30cb9bf619d58d48489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Fri, 28 Jul 2023 00:07:46 +0200 Subject: [PATCH] Automatically compile the project when it is opened if it has never been compiled. [DEVELOPMENT ENVIRONMENT] * NEW: Automatically compile the project when it is opened if it has never been compiled. --- app/src/gambas3/.src/Project.module | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/gambas3/.src/Project.module b/app/src/gambas3/.src/Project.module index 6495d3843..50e6f6713 100644 --- a/app/src/gambas3/.src/Project.module +++ b/app/src/gambas3/.src/Project.module @@ -878,13 +878,16 @@ _INIT_AGAIN: Endif - If Not IsFake() And If Settings["/RestoreFiles", 1] Then LoadLastOpenedFiles + GoSub _STOP_CONVERT + + If Not IsFake() Then + If Not IsDir(Project.Dir &/ ".gambas") Or If Dir(Project.Dir &/ ".gambas").Count = 0 Then Compile(True) + If Settings["/RestoreFiles", 1] Then LoadLastOpenedFiles + Endif RecentFiles = New String[] CPosition.Clear - GoSub _STOP_CONVERT - If ReadOnly Then FMain.ShowWarning(("This project is read-only.")) Else