short-circuit logic if monitor is not visible

pull/53/head
Zlatin Balevsky 2020-09-14 12:44:52 +01:00
parent c7406a4838
commit 2dee5e2a8a
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 3 additions and 0 deletions

View File

@ -501,6 +501,9 @@ class MainFrameModel {
}
void onQueryEvent(QueryEvent e) {
if (!uiSettings.showMonitor)
return
if (e.replyTo == core.me.destination)
return