mirror of
https://github.com/chylex/Backup-Essentials.git
synced 2025-05-28 09:34:10 +02:00
Set directory textbox to invalid state if the content is invalid
This commit is contained in:
parent
0ae3be1fed
commit
8ff2136e10
@ -43,6 +43,7 @@ namespace BackupEssentials.Pages{
|
||||
else if (status == BackupLocation.DirectoryStatus.NotExists)warning = "Selected directory does not exist, it will be created when a first backup is made.";
|
||||
|
||||
if (warning.Length != 0){
|
||||
VisualStateManager.GoToState(TextBoxDirectory,"Invalid",true);
|
||||
LastWarningDirectory = EditLocation.Directory;
|
||||
System.Windows.MessageBox.Show(warning+" Click Save again to confirm.","Caution!",MessageBoxButton.OK,MessageBoxImage.Warning);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user