Skip to content

Commit

Permalink
refactor: Removed storage selection from settings view.
Browse files Browse the repository at this point in the history
  • Loading branch information
MetalHexx committed Mar 31, 2024
1 parent fe42616 commit 81ebbdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="55"/>
<RowDefinition Height="40" ></RowDefinition>
<RowDefinition Height="30" ></RowDefinition>
<RowDefinition Height="30" ></RowDefinition>
<RowDefinition Height="30" ></RowDefinition>
Expand All @@ -28,55 +27,36 @@
Content="{Binding Title}"
Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="0 0 0 10"/>

<Label
Content="Selected Storage:"
ToolTip="This will determine the storage device that the application will bind to on the TR."
Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center"/>

<StackPanel
ToolTip="This will determine the storage device that the application will bind to on the TR."
Grid.Row="1" Grid.Column="3" Orientation="Horizontal">

<RadioButton
Content="SD"
IsChecked="{Binding Settings.StorageType, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter={x:Static core:TeensyStorageType.SD}}" />

<RadioButton
Content="USB"
IsChecked="{Binding Settings.StorageType, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter={x:Static core:TeensyStorageType.USB}}"
Margin="10,0,0,0" />
</StackPanel>

<Label
Content="Auto-Launch on Copy:"
ToolTip="When files are copied to the TR with drag and drop or the watch directory, &#x0a;the first file from the set will automatically launch."
Grid.Row="2" HorizontalAlignment="Right"/>
Grid.Row="1" HorizontalAlignment="Right"/>
<CheckBox
Content="Enabled"
ToolTip="When files are copied to the TR with drag and drop or the watch directory, &#x0a;the first file from the set will automatically launch."
IsChecked="{Binding Settings.AutoLaunchOnCopyEnabled, Mode=TwoWay}"
Grid.Row="2" Grid.Column="3" VerticalAlignment="Top" Margin="0 4 0 0"/>
Grid.Row="1" Grid.Column="3" VerticalAlignment="Top" Margin="0 4 0 0"/>

<Label
Content="File Auto-Transfer:"
ToolTip="Enabling auto-transfer will watch for files in the specified directory below. &#x0a;If a file is detected, it will automatically be transferred to /auto-transfer/[media type]."
Grid.Row="3" HorizontalAlignment="Right"/>
Grid.Row="2" HorizontalAlignment="Right"/>
<CheckBox
Content="Enabled"
ToolTip="Enabling auto-transfer will watch for files in the specified directory below. &#x0a;If a file is detected, it will automatically be transferred to /auto-transfer/[media type]."
IsChecked="{Binding Settings.AutoFileCopyEnabled, Mode=TwoWay}"
Grid.Row="3" Grid.Column="3" VerticalAlignment="Top" Margin="0 4 0 0"/>
Grid.Row="2" Grid.Column="3" VerticalAlignment="Top" Margin="0 4 0 0"/>

<Label
Content="Watch Directory:"
ToolTip="The folder specified here will be monitored for new files. &#x0a;Try setting it something like your browser download folder. &#x0a;Only types supported by the TR be monitored."
Grid.Row="4" HorizontalAlignment="Right"/>
Grid.Row="3" HorizontalAlignment="Right"/>

<TextBox
ToolTip="The folder specified here will be monitored for new files. &#x0a;Try setting it something like your browser download folder. &#x0a;Only types supported by the TR be monitored."
materialDesign:HintAssist.Hint="Watch Directory"
Text="{Binding Settings.WatchDirectoryLocation, Mode=TwoWay}"
Grid.Row="4" Grid.Column="3" VerticalAlignment="Top"/>
Grid.Row="3" Grid.Column="3" VerticalAlignment="Top"/>



Expand All @@ -85,6 +65,6 @@
Content="Save Settings"
Command="{Binding SaveSettingsCommand}"
HorizontalAlignment="Left"
Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3" Width="150" Margin="20"/>
Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3" Width="150" Margin="20"/>
</Grid>
</UserControl>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<UseWPF>true</UseWPF>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<Version>1.0.0-alpha.36</Version>
<Version>1.0.0-alpha.37</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 81ebbdb

Please sign in to comment.