@@ -66,9 +66,9 @@ public void ProcessArgs(string[] initialArgs)
6666 {
6767 foreach ( string arg in initialArgs )
6868 {
69- if ( arg . ToLower ( ) . StartsWith ( "/theme" ) && arg . IndexOf ( '=' ) != - 1 )
69+ if ( arg . StartsWith ( "/theme" , StringComparison . OrdinalIgnoreCase ) && arg . IndexOf ( '=' ) != - 1 )
7070 {
71- ProcessThemeArg ( arg . ToLower ( ) ) ;
71+ ProcessThemeArg ( arg ) ;
7272 }
7373 else if ( arg . StartsWith ( '/' ) )
7474 {
@@ -104,9 +104,9 @@ private void ProcessArgs(ApplicationContext app, string[] args)
104104
105105 foreach ( string arg in args )
106106 {
107- if ( arg . ToLower ( ) . StartsWith ( "/theme" ) && arg . IndexOf ( '=' ) != - 1 )
107+ if ( arg . StartsWith ( "/theme" , StringComparison . OrdinalIgnoreCase ) && arg . IndexOf ( '=' ) != - 1 )
108108 {
109- string themeId = ProcessThemeArg ( arg . ToLower ( ) ) ;
109+ string themeId = ProcessThemeArg ( arg ) ;
110110 if ( themeId != null )
111111 {
112112 ThemeShuffler . AddThemeToHistory ( themeId ) ;
@@ -153,11 +153,11 @@ private string ProcessThemeArg(string arg)
153153 return null ;
154154 }
155155
156- if ( arg . StartsWith ( "/theme=" ) )
156+ if ( arg . StartsWith ( "/theme=" , StringComparison . OrdinalIgnoreCase ) )
157157 {
158158 JsonConfig . settings . activeThemes [ 0 ] = themeId ;
159159 }
160- else if ( arg . StartsWith ( "/theme:L=" ) )
160+ else if ( arg . StartsWith ( "/theme:L=" , StringComparison . OrdinalIgnoreCase ) )
161161 {
162162 JsonConfig . settings . lockScreenTheme = themeId ;
163163 JsonConfig . settings . lockScreenDisplayIndex = - 1 ;
0 commit comments