From de34f9c5ce51404e9cb464362220b33884080f7a Mon Sep 17 00:00:00 2001 From: Asval Date: Tue, 21 Oct 2025 17:09:49 +0200 Subject: [PATCH] removed auto open sounds --- FModel/MainWindow.xaml | 16 ---------------- FModel/MainWindow.xaml.cs | 2 +- FModel/Settings/UserSettings.cs | 7 ------- FModel/ViewModels/CUE4ParseViewModel.cs | 2 +- 4 files changed, 2 insertions(+), 25 deletions(-) diff --git a/FModel/MainWindow.xaml b/FModel/MainWindow.xaml index b91c3b96..f70fc5af 100644 --- a/FModel/MainWindow.xaml +++ b/FModel/MainWindow.xaml @@ -103,9 +103,6 @@ - - @@ -862,19 +859,6 @@ - - - - - - - diff --git a/FModel/MainWindow.xaml.cs b/FModel/MainWindow.xaml.cs index 0c44727a..b6a957fa 100644 --- a/FModel/MainWindow.xaml.cs +++ b/FModel/MainWindow.xaml.cs @@ -246,7 +246,7 @@ public partial class MainWindow FLogger.Append(ELog.Information, () => { FLogger.Text("Successfully saved audio from ", Constants.WHITE); - FLogger.Link(folder.PathAtThisPoint, UserSettings.Default.ModelDirectory, true); + FLogger.Link(folder.PathAtThisPoint, UserSettings.Default.AudioDirectory, true); }); } } diff --git a/FModel/Settings/UserSettings.cs b/FModel/Settings/UserSettings.cs index ef577f0b..66d2aec8 100644 --- a/FModel/Settings/UserSettings.cs +++ b/FModel/Settings/UserSettings.cs @@ -140,13 +140,6 @@ namespace FModel.Settings set => SetProperty(ref _lastOpenedSettingTab, value); } - private bool _isAutoOpenSounds = true; - public bool IsAutoOpenSounds - { - get => _isAutoOpenSounds; - set => SetProperty(ref _isAutoOpenSounds, value); - } - private bool _isLoggerExpanded = true; public bool IsLoggerExpanded { diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs index de60c4fe..e6299b44 100644 --- a/FModel/ViewModels/CUE4ParseViewModel.cs +++ b/FModel/ViewModels/CUE4ParseViewModel.cs @@ -1111,7 +1111,7 @@ public class CUE4ParseViewModel : ViewModel var savedAudioPath = Path.Combine(UserSettings.Default.AudioDirectory, UserSettings.Default.KeepDirectoryStructure ? fullPath : fullPath.SubstringAfterLast('/')).Replace('\\', '/') + $".{ext.ToLowerInvariant()}"; - if (!UserSettings.Default.IsAutoOpenSounds || isBulk) + if (isBulk) { Directory.CreateDirectory(savedAudioPath.SubstringBeforeLast('/')); using var stream = new FileStream(savedAudioPath, FileMode.Create, FileAccess.Write);