Explorar o código

Disable interactive checkbox when a user is set.

A service can only interact with the desktop when running as LOCALSYSTEM
so disable the checkbox for that option when a user account is set.
Iain Patterson %!s(int64=10) %!d(string=hai) anos
pai
achega
8e2c124550
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      gui.cpp

+ 1 - 0
gui.cpp

@@ -81,6 +81,7 @@ static inline void set_timeout_enabled(unsigned long control, unsigned long depe
 }
 
 static inline void set_logon_enabled(unsigned char enabled) {
+  EnableWindow(GetDlgItem(tablist[NSSM_TAB_LOGON], IDC_INTERACT), ! enabled);
   EnableWindow(GetDlgItem(tablist[NSSM_TAB_LOGON], IDC_USERNAME), enabled);
   EnableWindow(GetDlgItem(tablist[NSSM_TAB_LOGON], IDC_PASSWORD1), enabled);
   EnableWindow(GetDlgItem(tablist[NSSM_TAB_LOGON], IDC_PASSWORD2), enabled);