mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Username is now correctly persisted
Set credentials validation works as intended Getting settings has default values Add parent group in Move searchbox Moving entries work as intended Removed unreferenced code files
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using GalaSoft.MvvmLight;
|
||||
using ModernKeePass.Domain.Dtos;
|
||||
|
||||
namespace ModernKeePass.ViewModels
|
||||
{
|
||||
@@ -8,32 +7,28 @@ namespace ModernKeePass.ViewModels
|
||||
private string _name;
|
||||
private string _path;
|
||||
private string _token;
|
||||
public bool IsFileSelected => !string.IsNullOrEmpty(Path);
|
||||
public bool IsFileSelected => !string.IsNullOrEmpty(Token);
|
||||
|
||||
public string Token
|
||||
{
|
||||
get { return _token; }
|
||||
set { Set(() => Token, ref _token, value); }
|
||||
set
|
||||
{
|
||||
Set(() => Token, ref _token, value);
|
||||
RaisePropertyChanged(nameof(IsFileSelected));
|
||||
}
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return _name; }
|
||||
private set { Set(() => Name, ref _name, value); }
|
||||
set { Set(() => Name, ref _name, value); }
|
||||
}
|
||||
|
||||
public string Path
|
||||
{
|
||||
get { return _path; }
|
||||
private set { Set(() => Path, ref _path, value); }
|
||||
}
|
||||
|
||||
public void OpenFile(FileInfo file)
|
||||
{
|
||||
Token = file.Id;
|
||||
Name = file.Name;
|
||||
Path = file.Path;
|
||||
RaisePropertyChanged(nameof(IsFileSelected));
|
||||
set { Set(() => Path, ref _path, value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user