Always open the user details dialog in the focused window

This fixes some odd UX where you tap on someone's user in a search or
pinned messages window, but it opens in the NeoChat main window instead.

Fixes #681
This commit is contained in:
Joshua Goins
2025-01-15 16:38:11 -05:00
parent a8f22003cb
commit 590fba7deb
3 changed files with 18 additions and 3 deletions

View File

@@ -7,6 +7,7 @@
#include <QGuiApplication>
#include <QPalette>
#include <QQmlEngine>
#include <QQuickItem>
#include <QRegularExpression>
#include <Quotient/user.h>
@@ -36,6 +37,7 @@ public:
Q_INVOKABLE bool isValidJson(const QByteArray &json);
Q_INVOKABLE QString escapeString(const QString &string);
Q_INVOKABLE QColor getUserColor(qreal hueF);
Q_INVOKABLE QQuickItem *focusedWindowItem();
private:
QmlUtils() = default;