Send changes_available() even if autorefresh is enabled
This commit is contained in:
parent
21d32bf581
commit
f6467778e0
|
@ -319,6 +319,9 @@ void Realm::notify()
|
||||||
verify_thread();
|
verify_thread();
|
||||||
|
|
||||||
if (m_shared_group->has_changed()) { // Throws
|
if (m_shared_group->has_changed()) { // Throws
|
||||||
|
if (m_delegate) {
|
||||||
|
m_delegate->changes_available();
|
||||||
|
}
|
||||||
if (m_auto_refresh) {
|
if (m_auto_refresh) {
|
||||||
if (m_group) {
|
if (m_group) {
|
||||||
transaction::advance(*m_shared_group, *m_history, m_delegate.get());
|
transaction::advance(*m_shared_group, *m_history, m_delegate.get());
|
||||||
|
@ -327,9 +330,6 @@ void Realm::notify()
|
||||||
m_delegate->did_change({}, {});
|
m_delegate->did_change({}, {});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_delegate) {
|
|
||||||
m_delegate->changes_available();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue