Started implementing proper ViewModels now that the backend is mostly done
This commit is contained in:
@@ -92,7 +92,7 @@ public class MainWindow
|
||||
shortcuts.Add(newShortcut); // This will automatically update the UI
|
||||
}
|
||||
|
||||
private void RemoveShortcut(PasswordStoreShortcut shortcut)
|
||||
private void RemoveShortcut(PasswordStoreViewModel shortcut)
|
||||
{
|
||||
shortcuts.Remove(shortcut); // This will automatically update the UI
|
||||
}
|
||||
@@ -102,7 +102,7 @@ public class MainWindow
|
||||
shortcuts.Add(new PasswordStoreShortcut(displayName: "Default", path: Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/.password_store"));
|
||||
}
|
||||
|
||||
private void UpdateShortcutName(PasswordStoreShortcut shortcut, string newName)
|
||||
private void UpdateShortcutName(PasswordStoreViewModel shortcut, string newName)
|
||||
{
|
||||
shortcut.DisplayName = newName; // This will automatically update the UI row
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user