<p>After further investigation it seems that ObservableSet behaves weird. If you copy the ObservableSet entries into a HashSet you can remove it.</p>
<pre><code>   public void removePaymentAccount(PaymentAccount paymentAccount) {
        HashSet<PaymentAccount> temp = new HashSet<>(paymentAccountsAsObservable);
        boolean changed = temp.remove(paymentAccount);
        paymentAccountsAsObservable.clear();
        paymentAccountsAsObservable.addAll(temp);
        if (changed)
            persist();
    }
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/3572?email_source=notifications&email_token=AJFFTNWXMI5F6DE2AB6BGXDQTI3SXA5CNFSM4JKDCHK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDZBVBQ#issuecomment-552737414">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNQMGSLWUS376FXNUOLQTI3SXANCNFSM4JKDCHKQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNRPAAYE5YCLPZALE5DQTI3SXA5CNFSM4JKDCHK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDZBVBQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/3572?email_source=notifications\u0026email_token=AJFFTNWXMI5F6DE2AB6BGXDQTI3SXA5CNFSM4JKDCHK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDZBVBQ#issuecomment-552737414",
"url": "https://github.com/bisq-network/bisq/pull/3572?email_source=notifications\u0026email_token=AJFFTNWXMI5F6DE2AB6BGXDQTI3SXA5CNFSM4JKDCHK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDZBVBQ#issuecomment-552737414",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>