@@ -66,9 +66,9 @@ public void ProcessArgs(string[] initialArgs)
66
66
{
67
67
foreach ( string arg in initialArgs )
68
68
{
69
- if ( arg . ToLower ( ) . StartsWith ( "/theme" ) && arg . IndexOf ( '=' ) != - 1 )
69
+ if ( arg . StartsWith ( "/theme" , StringComparison . OrdinalIgnoreCase ) && arg . IndexOf ( '=' ) != - 1 )
70
70
{
71
- ProcessThemeArg ( arg . ToLower ( ) ) ;
71
+ ProcessThemeArg ( arg ) ;
72
72
}
73
73
else if ( arg . StartsWith ( '/' ) )
74
74
{
@@ -104,9 +104,9 @@ private void ProcessArgs(ApplicationContext app, string[] args)
104
104
105
105
foreach ( string arg in args )
106
106
{
107
- if ( arg . ToLower ( ) . StartsWith ( "/theme" ) && arg . IndexOf ( '=' ) != - 1 )
107
+ if ( arg . StartsWith ( "/theme" , StringComparison . OrdinalIgnoreCase ) && arg . IndexOf ( '=' ) != - 1 )
108
108
{
109
- string themeId = ProcessThemeArg ( arg . ToLower ( ) ) ;
109
+ string themeId = ProcessThemeArg ( arg ) ;
110
110
if ( themeId != null )
111
111
{
112
112
ThemeShuffler . AddThemeToHistory ( themeId ) ;
@@ -153,11 +153,11 @@ private string ProcessThemeArg(string arg)
153
153
return null ;
154
154
}
155
155
156
- if ( arg . StartsWith ( "/theme=" ) )
156
+ if ( arg . StartsWith ( "/theme=" , StringComparison . OrdinalIgnoreCase ) )
157
157
{
158
158
JsonConfig . settings . activeThemes [ 0 ] = themeId ;
159
159
}
160
- else if ( arg . StartsWith ( "/theme:L=" ) )
160
+ else if ( arg . StartsWith ( "/theme:L=" , StringComparison . OrdinalIgnoreCase ) )
161
161
{
162
162
JsonConfig . settings . lockScreenTheme = themeId ;
163
163
JsonConfig . settings . lockScreenDisplayIndex = - 1 ;
0 commit comments