Turn on accent for save button when unsaved work

This commit is contained in:
2026-04-23 11:00:51 +09:00
parent d5b174fa22
commit 71ca0c6459
2 changed files with 10 additions and 2 deletions
@@ -111,10 +111,16 @@ class CreatePDFReportViewModel : BaseViewModel, ICanCheckShutdown, ILogger
_isCreatingPDF = value;
NotifyPropertyChanged();
NotifyPropertyChanged(nameof(IsCreatePDFButtonEnabled));
NotifyPropertyChanged(nameof(CanAddItem));
NotifyPropertyChanged(nameof(CanAddItem));
NotifyPropertyChanged(nameof(IsSaveButtonAccentOn));
}
}
public bool IsSaveButtonAccentOn
{
get => !_isCreatingPDF && HasUnsavedWork;
}
public bool IsCreatePDFButtonEnabled
{
get => !_isCreatingPDF && _pdfReport.Files.Count > 0;
@@ -133,6 +139,7 @@ class CreatePDFReportViewModel : BaseViewModel, ICanCheckShutdown, ILogger
{
_hasUnsavedWork = value;
NotifyPropertyChanged();
NotifyPropertyChanged(nameof(IsSaveButtonAccentOn));
}
}