File tree Expand file tree Collapse file tree 6 files changed +7
-8
lines changed Expand file tree Collapse file tree 6 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1717 Height =" 16"
1818 Margin =" 0,0,8,0"
1919 RenderTransformOrigin =" 0.5, 0.5"
20- Foreground =" {x:Bind Foreground, Mode=Oneway }"
20+ Foreground =" {x:Bind Foreground, Mode=OneWay }"
2121 HorizontalAlignment =" Center"
2222 VerticalAlignment =" Center"
2323 AnimatedIcon.State=" NormalOff" >
Original file line number Diff line number Diff line change 11using DependencyPropertyGenerator ;
22using Microsoft . UI . Xaml . Controls ;
3- using Microsoft . UI . Xaml . Media ;
43
54namespace Coder . Desktop . App . Controls ;
65
76[ DependencyProperty < bool > ( "IsOpen" , DefaultValue = false ) ]
8- [ DependencyProperty < SolidColorBrush > ( "Foreground" ) ]
97public sealed partial class ExpandChevron : UserControl
108{
119 public ExpandChevron ( )
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public CredentialModel GetCachedCredentials()
105105 public CoderApiClientCredential ? GetCoderApiClientCredential ( )
106106 {
107107 var latestCreds = _latestCredentials ;
108- if ( latestCreds is not { State : CredentialState . Valid } )
108+ if ( latestCreds is not { State : CredentialState . Valid } || latestCreds . CoderUrl is null )
109109 return null ;
110110
111111 return new CoderApiClientCredential
Original file line number Diff line number Diff line change @@ -339,7 +339,8 @@ public void OpenRemotePathSelectDialog()
339339 pickerViewModel . PathSelected += OnRemotePathSelected ;
340340
341341 _remotePickerWindow = new DirectoryPickerWindow ( pickerViewModel ) ;
342- _remotePickerWindow . SetParent ( _window ) ;
342+ if ( _window is not null )
343+ _remotePickerWindow . SetParent ( _window ) ;
343344 _remotePickerWindow . Closed += ( _ , _ ) =>
344345 {
345346 _remotePickerWindow = null ;
Original file line number Diff line number Diff line change 8686 <Button
8787 Content =" Back" HorizontalAlignment =" Right"
8888 Command =" {x:Bind ViewModel.TokenPage_BackCommand, Mode=OneWay}"
89- CommandParameter =" {x:Bind SignInWindow, Mode=OneWay }" />
89+ CommandParameter =" {x:Bind SignInWindow}" />
9090
9191 <Button
9292 Content =" Sign In"
9393 HorizontalAlignment =" Left"
9494 Style =" {StaticResource AccentButtonStyle}"
9595 Command =" {x:Bind ViewModel.TokenPage_SignInCommand, Mode=OneWay}"
96- CommandParameter =" {x:Bind SignInWindow, Mode=OneWay }" />
96+ CommandParameter =" {x:Bind SignInWindow}" />
9797 </StackPanel >
9898 </StackPanel >
9999</Page >
Original file line number Diff line number Diff line change 6161 Content =" Next"
6262 HorizontalAlignment =" Center"
6363 Command =" {x:Bind ViewModel.UrlPage_NextCommand, Mode=OneWay}"
64- CommandParameter =" {x:Bind SignInWindow, Mode=OneWay }"
64+ CommandParameter =" {x:Bind SignInWindow}"
6565 Style =" {StaticResource AccentButtonStyle}" />
6666 </StackPanel >
6767</Page >
You can’t perform that action at this time.
0 commit comments