Implemented proper viewModels

This commit is contained in:
2025-09-30 11:31:38 +02:00
parent c8c24cb7cc
commit a99b9fe0bb
7 changed files with 184 additions and 110 deletions

View File

@@ -15,7 +15,8 @@ class Program
var application = Adw.Application.New("org.typomustakes.keychain", Gio.ApplicationFlags.FlagsNone);
application.OnActivate += (sender, args) =>
{
var window = new UI.MainWindow().Window;
var passwordStoreService = provider.GetRequiredService<IPasswordStoreService>();
var window = new UI.MainWindow(passwordStoreService).Window;
window.Application = (Adw.Application)sender;
window.Show();
};