Skip to content

Commit de34f9c

Browse files
committed
removed auto open sounds
1 parent 570bdd6 commit de34f9c

File tree

4 files changed

+2
-25
lines changed

4 files changed

+2
-25
lines changed

FModel/MainWindow.xaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@
103103
</Viewbox>
104104
</MenuItem.Icon>
105105
</MenuItem>
106-
<Separator />
107-
<MenuItem Header="Auto Open Sounds" IsCheckable="True" StaysOpenOnClick="True"
108-
IsChecked="{Binding IsAutoOpenSounds, Source={x:Static settings:UserSettings.Default}}" />
109106
</MenuItem>
110107
<MenuItem Header="Views">
111108
<MenuItem Header="3D Viewer" Command="{Binding MenuCommand}" CommandParameter="Views_3dViewer">
@@ -862,19 +859,6 @@
862859
</Viewbox>
863860
</StatusBarItem>
864861

865-
<StatusBarItem Width="30" HorizontalContentAlignment="Stretch" ToolTip="Auto Open Sounds Enabled">
866-
<StatusBarItem.Style>
867-
<Style TargetType="StatusBarItem">
868-
<Style.Triggers>
869-
<DataTrigger Binding="{Binding IsAutoOpenSounds, Source={x:Static settings:UserSettings.Default}}" Value="False">
870-
<Setter Property="Visibility" Value="Collapsed" />
871-
</DataTrigger>
872-
</Style.Triggers>
873-
</Style>
874-
</StatusBarItem.Style>
875-
<TextBlock HorizontalAlignment="Center" FontWeight="SemiBold" Text="SND" />
876-
</StatusBarItem>
877-
878862
<StatusBarItem Margin="10 0 0 0">
879863
<TextBlock Text="{Binding LastUpdateCheck, Source={x:Static local:Settings.UserSettings.Default}, Converter={x:Static converters:RelativeDateTimeConverter.Instance}, StringFormat=Last Refresh: {0}}" />
880864
</StatusBarItem>

FModel/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private async void OnFolderAudioClick(object sender, RoutedEventArgs e)
246246
FLogger.Append(ELog.Information, () =>
247247
{
248248
FLogger.Text("Successfully saved audio from ", Constants.WHITE);
249-
FLogger.Link(folder.PathAtThisPoint, UserSettings.Default.ModelDirectory, true);
249+
FLogger.Link(folder.PathAtThisPoint, UserSettings.Default.AudioDirectory, true);
250250
});
251251
}
252252
}

FModel/Settings/UserSettings.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,6 @@ public int LastOpenedSettingTab
140140
set => SetProperty(ref _lastOpenedSettingTab, value);
141141
}
142142

143-
private bool _isAutoOpenSounds = true;
144-
public bool IsAutoOpenSounds
145-
{
146-
get => _isAutoOpenSounds;
147-
set => SetProperty(ref _isAutoOpenSounds, value);
148-
}
149-
150143
private bool _isLoggerExpanded = true;
151144
public bool IsLoggerExpanded
152145
{

FModel/ViewModels/CUE4ParseViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ private void SaveAndPlaySound(string fullPath, string ext, byte[] data, bool isB
11111111
var savedAudioPath = Path.Combine(UserSettings.Default.AudioDirectory,
11121112
UserSettings.Default.KeepDirectoryStructure ? fullPath : fullPath.SubstringAfterLast('/')).Replace('\\', '/') + $".{ext.ToLowerInvariant()}";
11131113

1114-
if (!UserSettings.Default.IsAutoOpenSounds || isBulk)
1114+
if (isBulk)
11151115
{
11161116
Directory.CreateDirectory(savedAudioPath.SubstringBeforeLast('/'));
11171117
using var stream = new FileStream(savedAudioPath, FileMode.Create, FileAccess.Write);

0 commit comments

Comments
 (0)