diff options
author | sr55 <[email protected]> | 2020-02-23 13:59:30 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2020-02-23 13:59:30 +0000 |
commit | d051fe3375ef5cd60f808604a4d9c49c5722808f (patch) | |
tree | 29f8b588b52f225672255457ca7afd5c91e8923c /win/CS/HandBrakeWPF/Services | |
parent | b203d0dee2677ee9e1a5f8ba5308d5c9543e2c35 (diff) |
WinGui: Improve Handling of Low Disk Space Alerts
- Preferences UI updated to make it clearer difference between Alert Level and Pause When Low options.
- Main Window UI around adding to Queue will now prompt and allow to Confirm / Deny adding to queue when disk space is low.
- Alerts are less agressive when bulk adding to the queue.
Fixes #2648
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/SystemService.cs | 4 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Services/UserSettingService.cs | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Services/SystemService.cs b/win/CS/HandBrakeWPF/Services/SystemService.cs index a2073cc98..d9fa46716 100644 --- a/win/CS/HandBrakeWPF/Services/SystemService.cs +++ b/win/CS/HandBrakeWPF/Services/SystemService.cs @@ -65,9 +65,9 @@ namespace HandBrakeWPF.Services private void StorageCheck() { string directory = this.encodeService.GetActiveJob()?.Destination; - if (!string.IsNullOrEmpty(directory) && this.encodeService.IsEncoding) + if (!string.IsNullOrEmpty(directory) && this.encodeService.IsEncoding) { - long lowLevel = this.userSettingService.GetUserSetting<long>(UserSettingConstants.PauseEncodeOnLowDiskspaceLevel); + long lowLevel = this.userSettingService.GetUserSetting<long>(UserSettingConstants.PauseQueueOnLowDiskspaceLevel); if (!this.storageLowPause && this.userSettingService.GetUserSetting<bool>(UserSettingConstants.PauseOnLowDiskspace) && !DriveUtilities.HasMinimumDiskSpace(directory, lowLevel)) { this.log.LogMessage( diff --git a/win/CS/HandBrakeWPF/Services/UserSettingService.cs b/win/CS/HandBrakeWPF/Services/UserSettingService.cs index 4e8a6267f..fb7c6185c 100644 --- a/win/CS/HandBrakeWPF/Services/UserSettingService.cs +++ b/win/CS/HandBrakeWPF/Services/UserSettingService.cs @@ -289,7 +289,6 @@ namespace HandBrakeWPF.Services defaults.Add(UserSettingConstants.DisableLibDvdNav, false);
defaults.Add(UserSettingConstants.PauseOnLowDiskspace, true);
defaults.Add(UserSettingConstants.PauseQueueOnLowDiskspaceLevel, 2000000000L);
- defaults.Add(UserSettingConstants.PauseEncodeOnLowDiskspaceLevel, 2000000000L);
defaults.Add(UserSettingConstants.PreviewScanCount, 10);
defaults.Add(UserSettingConstants.MinScanDuration, 10);
defaults.Add(UserSettingConstants.ProcessPriorityInt, 3);
|