Skip to content

Commit b3174af

Browse files
Update file controls to limit audio file types
1 parent 8a3c5a6 commit b3174af

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

MSUScripter/MSUScripter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<ItemGroup>
1919
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.2.3" />
2020
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
21-
<PackageReference Include="MattEqualsCoder.AvaloniaControls" Version="1.5.2" />
21+
<PackageReference Include="MattEqualsCoder.AvaloniaControls" Version="1.5.3" />
2222
<PackageReference Include="MattEqualsCoder.GitHubReleaseChecker" Version="1.1.3" />
2323
<PackageReference Include="MattEqualsCoder.MSURandomizer.Library" Version="3.0.4" />
2424
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />

MSUScripter/Views/AddSongWindow.axaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@
7171

7272
<controls1:FileControl Grid.Row="1" Grid.Column="12" Grid.ColumnSpan="12"
7373
Name="FileControl"
74-
Filter="All Files:*"
74+
Filter="Supported audio files:*.wav,*.mp3,*.flac,*.ogg;All files:*.*"
7575
Margin="3 0 0 0"
7676
FilePath="{Binding FilePath, Mode=TwoWay}"
7777
IsEnabled="{Binding !RunningPyMusicLooper}"
78+
CaseSensitiveFilter="False"
7879
OnUpdated="FileControl_OnOnUpdated"
7980
></controls1:FileControl>
8081

MSUScripter/Views/MsuSongMsuPcmInfoPanel.axaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,13 @@
8585
<StackPanel Orientation="Vertical">
8686

8787
<controls1:LabeledControl Text="Input File:" Hint="The file to be used as the input for this track/sub-track/sub-channel" DisplayHint="True">
88-
<controls1:FileControl Name="FileControl" FilePath="{Binding File, Mode=TwoWay}" OnUpdated="FileControl_OnOnUpdated"></controls1:FileControl>
88+
<controls1:FileControl
89+
Name="FileControl"
90+
FilePath="{Binding File, Mode=TwoWay}"
91+
OnUpdated="FileControl_OnOnUpdated"
92+
CaseSensitiveFilter="False"
93+
Filter="Supported audio files:*.wav,*.mp3,*.flac,*.ogg;All files:*.*"
94+
/>
8995
</controls1:LabeledControl>
9096

9197
<controls1:LabeledControl Text="Normalization:" Hint="Normalize the current track to the specified RMS level, overrides the global normalization value" DisplayHint="True">

Schemas/MsuSongInfo.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@
3333
],
3434
"description": "A url in which the user can purchase the song/album"
3535
},
36+
"CheckCopyright": {
37+
"type": [
38+
"boolean",
39+
"null"
40+
],
41+
"description": "If the song should be added to the video to upload to YouTube to check for copyright strikes"
42+
},
43+
"IsCopyrightSafe": {
44+
"type": [
45+
"boolean",
46+
"null"
47+
],
48+
"description": "If the song has been tested and shown to be safe from copyright strikes in VODs"
49+
},
3650
"MsuPcmInfo": {
3751
"description": "Details that are passed to msupcm++ for generation",
3852
"oneOf": [

0 commit comments

Comments
 (0)