public void CheckForOpenFileChanged(Activity activity) { if (_db.DidOpenFileChange()) { if (_db.ReloadRequested) { LockDatabase(false); activity.SetResult(KeePass.ExitReloadDb); activity.Finish(); //todo: return? } AskForReload(activity); } }
public void CheckForOpenFileChanged(Activity activity) { if (CurrentDb?.DidOpenFileChange() == true) { if (CurrentDb.ReloadRequested) { activity.SetResult(KeePass.ExitReloadDb); activity.Finish(); } else { AskForReload(activity); } } }