Skip to content

Commit de0ac29

Browse files
committed
Code cleanup
1 parent 075040d commit de0ac29

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

GUI/WPF/ViewModels/Controls/AccountViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public bool PasswordLeaked
161161
&& MainViewModel.Database.Warnings.Any(x => x.WarningType == WarningType.PasswordLeakedWarning
162162
&& x.Accounts.Contains(Account));
163163

164-
public string[] IdentifierAutoCompleteList => MainViewModel.User?.Services
164+
public static string[] IdentifierAutoCompleteList => MainViewModel.User?.Services
165165
.SelectMany(x => x.Accounts)
166166
.SelectMany(x => x.Identifiers)
167167
.Distinct()

GUI/WPF/Views/Controls/AccountView.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ private void _identifier_TextBox_KeyUp(object sender, KeyEventArgs e)
280280
if (e.Key is Key.Enter
281281
or Key.Insert)
282282
{
283-
string? identifier = InsertIdentifierView.InsertIdentifierDialog(_viewModel?.IdentifierAutoCompleteList ?? [], identifier_TB.Text);
283+
string? identifier = InsertIdentifierView.InsertIdentifierDialog(AccountViewModel.IdentifierAutoCompleteList ?? [], identifier_TB.Text);
284284

285285
if (string.IsNullOrEmpty(identifier)) return;
286286

0 commit comments

Comments
 (0)