Skip to content

Commit e7b2491

Browse files
committed
formatting
1 parent fa4fbd8 commit e7b2491

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

App/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private async Task InitializeServicesAsync(CancellationToken cancellationToken =
193193

194194
// Don't attempt to connect if we failed to load credentials or reconnect.
195195
// This will prevent the app from trying to connect to the VPN service.
196-
dependenciesLoaded = false;
196+
dependenciesLoaded = false;
197197
}
198198

199199
var attemptCoderConnection = settingsTask.Result?.ConnectOnLaunch ?? false;

App/Views/Pages/SettingsMainPage.xaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,9 @@
1313
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
1414
mc:Ignorable="d"
1515
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
16-
1716
<Page.Resources>
18-
<!-- These styles can be referenced to create a consistent SettingsPage layout -->
19-
2017
<!-- Spacing between cards -->
2118
<x:Double x:Key="SettingsCardSpacing">4</x:Double>
22-
2319
<!-- Style (inc. the correct spacing) of a section header -->
2420
<Style x:Key="SettingsSectionHeaderTextBlockStyle"
2521
BasedOn="{StaticResource BodyStrongTextBlockStyle}"
@@ -34,26 +30,21 @@
3430
<StackPanel MaxWidth="1000"
3531
HorizontalAlignment="Stretch"
3632
Spacing="{StaticResource SettingsCardSpacing}">
37-
3833
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" Text="Coder Desktop" />
39-
4034
<controls:SettingsCard Description="This setting controls whether the Coder Desktop app starts on Windows startup."
4135
Header="Start on login"
4236
HeaderIcon="{ui:FontIcon Glyph=&#xE819;}"
4337
IsEnabled="{x:Bind ViewModel.StartOnLoginDisabled, Converter={StaticResource InverseBoolConverter}, Mode=OneWay}">
4438
<ToggleSwitch IsOn="{x:Bind ViewModel.StartOnLogin, Mode=TwoWay}" />
4539
</controls:SettingsCard>
46-
4740
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" Text="Coder Connect" />
4841
<controls:SettingsCard Description="This setting controls whether Coder Connect automatically starts with Coder Desktop. "
4942
Header="Connect on launch"
5043
HeaderIcon="{ui:FontIcon Glyph=&#xE8AF;}"
5144
>
5245
<ToggleSwitch IsOn="{x:Bind ViewModel.ConnectOnLaunch, Mode=TwoWay}" />
5346
</controls:SettingsCard>
54-
5547
</StackPanel>
5648
</Grid>
5749
</ScrollViewer>
58-
5950
</Page>

0 commit comments

Comments
 (0)