File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ Public Class Pref_Gui
183183 Next
184184 Next
185185 Btn_Apply.Enabled = False
186+ SetLogControlsStatus()
186187 IsShowed = True
187188 LogFile.LogTracing( "Pref Gui Opened." , LogLvl.LOG_DEBUG, Me )
188189 Catch Except As Exception
Original file line number Diff line number Diff line change @@ -138,6 +138,14 @@ Public Class WinNUT
138138 StrLog.Insert(AppResxStr.STR_LOG_UPDATE, My.Resources.Log_Str_11)
139139 StrLog.Insert(AppResxStr.STR_LOG_NUT_FSD, My.Resources.Log_Str_12)
140140
141+ 'Init Logger
142+ If My.Settings.LG_LogToFile Then
143+ LogFile.LogLevelValue = My.Settings.LG_LogLevel
144+ LogFile.InitializeLogFile()
145+ ElseIf LogFile.IsWritingToFile Then
146+ LogFile.DeleteLogFile()
147+ End If
148+
141149 'Init Systray
142150 NotifyIcon.Text = ProgramName & " - " & ShortProgramVersion
143151 NotifyIcon.Visible = False
You can’t perform that action at this time.
0 commit comments