Handle error when restarting and frmIndex was open
This commit is contained in:
parent
c86402f389
commit
d5c6c17303
@ -430,15 +430,21 @@ Public Class frmStart
|
|||||||
frmConfig_Basic.ShowDialog()
|
frmConfig_Basic.ShowDialog()
|
||||||
'Wurde die Sprache in der Konfiguration geändert
|
'Wurde die Sprache in der Konfiguration geändert
|
||||||
If LANGUAGE_CHANGED = True Then
|
If LANGUAGE_CHANGED = True Then
|
||||||
If USER_LANGUAGE = "de-DE" Then
|
Try
|
||||||
MsgBox("Zur letzendlichen Neukonfiguration der Sprache ist ein Neustart notwendig!", MsgBoxStyle.Information)
|
If USER_LANGUAGE = "de-DE" Then
|
||||||
Else
|
MsgBox("Zur letzendlichen Neukonfiguration der Sprache ist ein Neustart notwendig!", MsgBoxStyle.Information, Text)
|
||||||
MsgBox("For the final changing of language, a restart is required!", MsgBoxStyle.Information)
|
Else
|
||||||
End If
|
MsgBox("For the final changing of language, a restart is required!", MsgBoxStyle.Information, Text)
|
||||||
Application.Restart()
|
End If
|
||||||
|
Application.Restart()
|
||||||
|
Catch ex As Exception
|
||||||
|
LOGGER.Error(ex)
|
||||||
|
MsgBox("Please restart the application manually.", MsgBoxStyle.Information, Text)
|
||||||
|
End Try
|
||||||
|
Else
|
||||||
|
Start_Folderwatch()
|
||||||
|
Me.TopMost = True
|
||||||
End If
|
End If
|
||||||
Start_Folderwatch()
|
|
||||||
Me.TopMost = True
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Sub TimerFolderWatch_Tick(sender As Object, e As EventArgs) Handles TimerFolderWatch.Tick
|
Private Sub TimerFolderWatch_Tick(sender As Object, e As EventArgs) Handles TimerFolderWatch.Tick
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user