mirror of
https://github.com/bitwarden/mobile
synced 2026-01-08 03:23:23 +00:00
view page login info with copy buttons
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Bit.Core.Utilities
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected bool SetProperty<T>(ref T backingStore, T value, Action onChanged = null,
|
||||
[CallerMemberName]string propertyName = "")
|
||||
[CallerMemberName]string propertyName = "", string[] additionalPropertyNames = null)
|
||||
{
|
||||
if(EqualityComparer<T>.Default.Equals(backingStore, value))
|
||||
{
|
||||
@@ -19,6 +19,13 @@ namespace Bit.Core.Utilities
|
||||
|
||||
backingStore = value;
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
if(PropertyChanged != null && additionalPropertyNames != null)
|
||||
{
|
||||
foreach(var prop in additionalPropertyNames)
|
||||
{
|
||||
PropertyChanged.Invoke(this, new PropertyChangedEventArgs(prop));
|
||||
}
|
||||
}
|
||||
onChanged?.Invoke();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user