mirror of
https://github.com/KeyKeeperApp/KeyKeeper.git
synced 2026-05-06 06:46:36 +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();
|
EntryEditWindow dialog = new();
|
||||||
dialog.SetEntry(selectedEntry);
|
dialog.SetEntry(selectedEntry);
|
||||||
|
|
||||||
|
vm_.StopLockTimer();
|
||||||
|
|
||||||
await dialog.ShowDialog(this);
|
await dialog.ShowDialog(this);
|
||||||
|
|
||||||
|
vm_.StartLockTimer();
|
||||||
|
|
||||||
if (dialog.EditedEntry != null)
|
if (dialog.EditedEntry != null)
|
||||||
{
|
{
|
||||||
vm.UpdateEntry(dialog.EditedEntry);
|
vm.UpdateEntry(dialog.EditedEntry);
|
||||||
@@ -165,7 +170,9 @@ public partial class RepositoryWindow : Window
|
|||||||
{
|
{
|
||||||
EntryEditWindow dialog = new();
|
EntryEditWindow dialog = new();
|
||||||
dialog.SetEntry(pwd);
|
dialog.SetEntry(pwd);
|
||||||
|
vm.StopLockTimer();
|
||||||
await dialog.ShowDialog(this);
|
await dialog.ShowDialog(this);
|
||||||
|
vm.StartLockTimer();
|
||||||
if (dialog.EditedEntry != null)
|
if (dialog.EditedEntry != null)
|
||||||
{
|
{
|
||||||
pageVm.UpdateEntry(dialog.EditedEntry);
|
pageVm.UpdateEntry(dialog.EditedEntry);
|
||||||
|
|||||||
Reference in New Issue
Block a user