This is an automated email from the ASF dual-hosted git repository.

jlahoda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 6aadb9aa5a Forcing restart when to_enable.txt file exists in the 
Windows launcher.
     new 64c134cfa1 Merge pull request #6914 from 
lahodaj/to_enable_in_windows_launcher
6aadb9aa5a is described below

commit 6aadb9aa5a4aceb075591d4b1562b21b293e58f4
Author: Jan Lahoda <[email protected]>
AuthorDate: Thu Jan 4 09:49:05 2024 +0100

    Forcing restart when to_enable.txt file exists in the Windows launcher.
---
 platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp 
b/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp
index 76fc6fc204..33bf8ee83e 100644
--- a/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp
+++ b/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp
@@ -484,6 +484,15 @@ bool PlatformLauncher::shouldAutoUpdate(bool firstStart, 
const char *basePath) {
             return true;
         }
 
+        path = basePath;
+        path += "\\update\\deactivate\\to_enable.txt";
+        hFind = FindFirstFile(path.c_str(), &fd);
+        if (hFind != INVALID_HANDLE_VALUE) {
+            logMsg("to_enable.txt found: %s", path.c_str());
+            FindClose(hFind);
+            return true;
+        }
+
         path = basePath;
         path += "\\update\\deactivate\\to_uninstall.txt";
         hFind = FindFirstFile(path.c_str(), &fd);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to