File tree 6 files changed +7
-8
lines changed
6 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 17
17
Height =" 16"
18
18
Margin =" 0,0,8,0"
19
19
RenderTransformOrigin =" 0.5, 0.5"
20
- Foreground =" {x:Bind Foreground, Mode=Oneway }"
20
+ Foreground =" {x:Bind Foreground, Mode=OneWay }"
21
21
HorizontalAlignment =" Center"
22
22
VerticalAlignment =" Center"
23
23
AnimatedIcon.State=" NormalOff" >
Original file line number Diff line number Diff line change 1
1
using DependencyPropertyGenerator ;
2
2
using Microsoft . UI . Xaml . Controls ;
3
- using Microsoft . UI . Xaml . Media ;
4
3
5
4
namespace Coder . Desktop . App . Controls ;
6
5
7
6
[ DependencyProperty < bool > ( "IsOpen" , DefaultValue = false ) ]
8
- [ DependencyProperty < SolidColorBrush > ( "Foreground" ) ]
9
7
public sealed partial class ExpandChevron : UserControl
10
8
{
11
9
public ExpandChevron ( )
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public CredentialModel GetCachedCredentials()
105
105
public CoderApiClientCredential ? GetCoderApiClientCredential ( )
106
106
{
107
107
var latestCreds = _latestCredentials ;
108
- if ( latestCreds is not { State : CredentialState . Valid } )
108
+ if ( latestCreds is not { State : CredentialState . Valid } || latestCreds . CoderUrl is null )
109
109
return null ;
110
110
111
111
return new CoderApiClientCredential
Original file line number Diff line number Diff line change @@ -339,7 +339,8 @@ public void OpenRemotePathSelectDialog()
339
339
pickerViewModel . PathSelected += OnRemotePathSelected ;
340
340
341
341
_remotePickerWindow = new DirectoryPickerWindow ( pickerViewModel ) ;
342
- _remotePickerWindow . SetParent ( _window ) ;
342
+ if ( _window is not null )
343
+ _remotePickerWindow . SetParent ( _window ) ;
343
344
_remotePickerWindow . Closed += ( _ , _ ) =>
344
345
{
345
346
_remotePickerWindow = null ;
Original file line number Diff line number Diff line change 86
86
<Button
87
87
Content =" Back" HorizontalAlignment =" Right"
88
88
Command =" {x:Bind ViewModel.TokenPage_BackCommand, Mode=OneWay}"
89
- CommandParameter =" {x:Bind SignInWindow, Mode=OneWay }" />
89
+ CommandParameter =" {x:Bind SignInWindow}" />
90
90
91
91
<Button
92
92
Content =" Sign In"
93
93
HorizontalAlignment =" Left"
94
94
Style =" {StaticResource AccentButtonStyle}"
95
95
Command =" {x:Bind ViewModel.TokenPage_SignInCommand, Mode=OneWay}"
96
- CommandParameter =" {x:Bind SignInWindow, Mode=OneWay }" />
96
+ CommandParameter =" {x:Bind SignInWindow}" />
97
97
</StackPanel >
98
98
</StackPanel >
99
99
</Page >
Original file line number Diff line number Diff line change 61
61
Content =" Next"
62
62
HorizontalAlignment =" Center"
63
63
Command =" {x:Bind ViewModel.UrlPage_NextCommand, Mode=OneWay}"
64
- CommandParameter =" {x:Bind SignInWindow, Mode=OneWay }"
64
+ CommandParameter =" {x:Bind SignInWindow}"
65
65
Style =" {StaticResource AccentButtonStyle}" />
66
66
</StackPanel >
67
67
</Page >
You can’t perform that action at this time.
0 commit comments