mirror of
https://github.com/KeyKeeperApp/KeyKeeper.git
synced 2026-04-05 20:32:09 +03:00
make timer stop while editing passwords
This commit is contained in:
@@ -118,8 +118,13 @@ public partial class RepositoryWindow : Window
|
||||
|
||||
EntryEditWindow dialog = new();
|
||||
dialog.SetEntry(selectedEntry);
|
||||
|
||||
vm_.StopLockTimer();
|
||||
|
||||
await dialog.ShowDialog(this);
|
||||
|
||||
vm_.StartLockTimer();
|
||||
|
||||
if (dialog.EditedEntry != null)
|
||||
{
|
||||
vm.UpdateEntry(dialog.EditedEntry);
|
||||
@@ -165,7 +170,9 @@ public partial class RepositoryWindow : Window
|
||||
{
|
||||
EntryEditWindow dialog = new();
|
||||
dialog.SetEntry(pwd);
|
||||
vm.StopLockTimer();
|
||||
await dialog.ShowDialog(this);
|
||||
vm.StartLockTimer();
|
||||
if (dialog.EditedEntry != null)
|
||||
{
|
||||
pageVm.UpdateEntry(dialog.EditedEntry);
|
||||
|
||||
Reference in New Issue
Block a user