File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -132,10 +132,14 @@ bool is_config_changed()
132132
133133bool reload_config ()
134134{
135+ static int atom_variable = 0 ;
136+ if (atom_variable)return false ;
137+ atom_variable = 1 ;
135138 LOGMESSAGE (L" GetCurrentThreadId:%d\n " , GetCurrentThreadId ());
136139 if (global_stat == nullptr )
137140 {
138141 LOGMESSAGE (L" global_stat is nullptr\n " );
142+ atom_variable = 0 ;
139143 return false ;
140144 }
141145 assert (conform_cache_expire);
@@ -162,10 +166,10 @@ bool reload_config()
162166 }
163167 if (IDCANCEL == result)
164168 {
169+ atom_variable = 0 ;
165170 return true ;
166171 }
167172
168-
169173 reload_config_with_cache = IDNO == result;
170174
171175 unregisterhotkey_killtimer_all ();
@@ -186,12 +190,14 @@ bool reload_config()
186190 extern HICON gHicon ;
187191 if (NULL == init_global (ghJob, gHicon ))
188192 {
193+ atom_variable = 0 ;
189194 return false ;
190195 }
191196 start_all (ghJob);
192197 DeleteTrayIcon ();
193198 ShowTrayIcon (CONFIG_FILENAMEW L" has been reloaded." , NIM_ADD);
194199 }
200+ atom_variable = 0 ;
195201 return true ;
196202}
197203
@@ -410,7 +416,7 @@ bool flush_cache(/*bool is_exit*/)
410416#endif
411417 return true ;
412418 }
413- }
419+ }
414420
415421 return false ;
416422}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ before_build:
3232 - cmd : >-
3333 C:\Python36\Scripts\pip.exe install chardet pytz
3434
35- C:\Python36\python.exe version_set.py %APPVEYOR_BUILD_NUMBER% 1 9 8
35+ C:\Python36\python.exe version_set.py %APPVEYOR_BUILD_NUMBER% 1 9 9
3636build :
3737 project : c:\projects\CommandTrayHost\CommandTrayHost.sln
3838 verbosity : minimal
You can’t perform that action at this time.
0 commit comments