Started implementing proper ViewModels now that the backend is mostly done

This commit is contained in:
2025-09-26 11:02:37 +02:00
parent e2c588794e
commit 22ad11add1
4 changed files with 38 additions and 54 deletions

View File

@@ -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
}