22using System . Collections . Generic ;
33using System . ComponentModel ;
44using System . Linq ;
5+ using System . Runtime . CompilerServices ;
56using System . Windows ;
67using System . Windows . Media . Imaging ;
7- using System . Runtime . CompilerServices ;
8+ using EverythingToolbar . Controls ;
89using EverythingToolbar . Data ;
910using EverythingToolbar . Helpers ;
1011using EverythingToolbar . Properties ;
11- using EverythingToolbar . Controls ;
12- using MessageBoxResult = Wpf . Ui . Controls . MessageBoxResult ;
1312using FILETIME = System . Runtime . InteropServices . ComTypes . FILETIME ;
13+ using MessageBoxResult = Wpf . Ui . Controls . MessageBoxResult ;
1414
1515namespace EverythingToolbar . Settings
1616{
@@ -126,10 +126,9 @@ private static FILETIME DateTimeToFileTime(DateTime dateTime)
126126
127127 private async void OnUILanguageChanged ( )
128128 {
129- var result = await FluentMessageBox . CreateYesNo (
130- Resources . MessageBoxRestartMessage ,
131- Resources . MessageBoxRestartTitle
132- ) . ShowDialogAsync ( ) ;
129+ var result = await FluentMessageBox
130+ . CreateYesNo ( Resources . MessageBoxRestartMessage , Resources . MessageBoxRestartTitle )
131+ . ShowDialogAsync ( ) ;
133132
134133 if ( result != MessageBoxResult . Primary )
135134 return ;
@@ -139,13 +138,15 @@ private async void OnUILanguageChanged()
139138 if ( IsLauncher && executablePath != null )
140139 {
141140 // Start a new instance with a delay to allow the current one to exit and release the Mutex
142- System . Diagnostics . Process . Start ( new System . Diagnostics . ProcessStartInfo
143- {
144- FileName = "cmd.exe" ,
145- Arguments = $ "/c timeout /t 1 /nobreak && start \" \" \" { executablePath } \" ",
146- WindowStyle = System . Diagnostics . ProcessWindowStyle . Hidden ,
147- CreateNoWindow = true
148- } ) ;
141+ System . Diagnostics . Process . Start (
142+ new System . Diagnostics . ProcessStartInfo
143+ {
144+ FileName = "cmd.exe" ,
145+ Arguments = $ "/c timeout /t 1 /nobreak && start \" \" \" { executablePath } \" ",
146+ WindowStyle = System . Diagnostics . ProcessWindowStyle . Hidden ,
147+ CreateNoWindow = true ,
148+ }
149+ ) ;
149150 }
150151
151152 // Always restart explorer to provide consistent visual feedback/refresh
0 commit comments