Skip to content

Commit 72d995d

Browse files
committed
feat: show 'スキップ' status in output list for skipped files
1 parent 2902865 commit 72d995d

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎src/App/MainWindow.xaml.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ private async Task ProcessFilesAsync(bool? compress)
533533
if (result.Skipped)
534534
{
535535
Interlocked.Increment(ref counters[3]);
536+
entries[i].IsSkipped = true;
536537
// ProgressPercent stays 0, IsProcessingComplete stays false
537538
}
538539
else if (result.Success)

‎src/App/Models/OutputFileEntry.cs‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ public class OutputFileEntry : FileEntry
66
{
77
private int _progressPercent;
88
private bool _isProcessingComplete;
9+
private bool _isSkipped;
910

1011
public long OriginalSizeBytes { get; private set; }
1112
public long OutputSizeBytes => File.Exists(FullPath) ? new FileInfo(FullPath).Length : 0;
@@ -38,10 +39,23 @@ public bool IsProcessingComplete
3839
}
3940
}
4041

42+
public bool IsSkipped
43+
{
44+
get => _isSkipped;
45+
set
46+
{
47+
if (_isSkipped == value) return;
48+
_isSkipped = value;
49+
OnPropertyChanged();
50+
OnPropertyChanged(nameof(CompressionRatioText));
51+
}
52+
}
53+
4154
public string CompressionRatioText
4255
{
4356
get
4457
{
58+
if (IsSkipped) return "スキップ";
4559
if (!IsProcessingComplete) return "—";
4660
if (OriginalSizeBytes <= 0) return "—";
4761
double ratio = (1.0 - (double)OutputSizeBytes / OriginalSizeBytes) * 100.0;

0 commit comments

Comments
 (0)