Updated MainWindow

Switched from IsPressed to IsChecked, which works as intended.
This commit is contained in:
Mario Steele 2025-07-31 07:22:13 -05:00
parent 08f5038abd
commit ad155026d1

View file

@ -28,11 +28,11 @@
<Grid <Grid
ColumnDefinitions="170,*" ColumnDefinitions="170,*"
RowDefinitions="*,*,*"> RowDefinitions="*,*,*">
<ToggleSwitch Grid.Row="0" Grid.Column="0" IsPressed="{Binding SyncHistory, Mode=TwoWay}" OnContent="Sync History" /> <ToggleSwitch Grid.Row="0" Grid.Column="0" IsChecked="{Binding SyncHistory, Mode=TwoWay}" OnContent="Sync History" />
<ToggleSwitch Grid.Row="0" Grid.Column="1" IsPressed="{Binding SyncPlaylist, Mode=TwoWay}" OnContent="Sync Playlists"/> <ToggleSwitch Grid.Row="0" Grid.Column="1" IsChecked="{Binding SyncPlaylist, Mode=TwoWay}" OnContent="Sync Playlists"/>
<ToggleSwitch Grid.Row="1" Grid.Column="0" IsPressed="{Binding SyncProfile, Mode=TwoWay}" OnContent="Sync Profiles"/> <ToggleSwitch Grid.Row="1" Grid.Column="0" IsChecked="{Binding SyncProfile, Mode=TwoWay}" OnContent="Sync Profiles"/>
<ToggleSwitch Grid.Row="1" Grid.Column="1" IsPressed="{Binding SyncSearchHistory, Mode=TwoWay}" OnContent="Sync Search History"/> <ToggleSwitch Grid.Row="1" Grid.Column="1" IsChecked="{Binding SyncSearchHistory, Mode=TwoWay}" OnContent="Sync Search History"/>
<ToggleSwitch Grid.Row="2" Grid.Column="0" IsPressed="{Binding SyncSettings, Mode=TwoWay}" OnContent="Sync Settings"/> <ToggleSwitch Grid.Row="2" Grid.Column="0" IsChecked="{Binding SyncSettings, Mode=TwoWay}" OnContent="Sync Settings"/>
</Grid> </Grid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="10"> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="10">