diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-01-16 15:33:33 -0500 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-01-29 18:16:50 -0500 |
commit | cd998d1c35d9d65aa04ca64f0f94f34a57db8335 (patch) | |
tree | 8ed480d80590712b7eae29d39129fd614e9514e7 /src/timeline | |
parent | Translated using Weblate (Estonian) (diff) | |
download | nheko-cd998d1c35d9d65aa04ca64f0f94f34a57db8335.tar.xz |
Center user info dialog on the screen
Diffstat (limited to 'src/timeline')
-rw-r--r-- | src/timeline/TimelineViewManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp index 97af0065..1317dc2a 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp @@ -128,6 +128,10 @@ TimelineViewManager::TimelineViewManager(CallManager *callManager, ChatPage *par "UserProfile needs to be instantiated on the C++ side"); static auto self = this; + qmlRegisterSingletonType<MainWindow>( + "im.nheko", 1, 0, "MainWindow", [](QQmlEngine *, QJSEngine *) -> QObject * { + return MainWindow::instance(); + }); qmlRegisterSingletonType<TimelineViewManager>( "im.nheko", 1, 0, "TimelineManager", [](QQmlEngine *, QJSEngine *) -> QObject * { return self; |