Skip to content

Commit 6e53623

Browse files
committed
Register AppInfo in Global module
1 parent a93ce94 commit 6e53623

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/app/qml/dialogs/AboutDialog.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import QtQuick
44
import QtQuick.Controls
55
import QtQuick.Layouts
66
import ScratchCPP
7+
import ScratchCPP.Global
78
import ScratchCPP.Ui
89
import ScratchCPP.UiComponents
910

src/global/globalmodule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void GlobalModule::registerExports()
1919
m_appInfo = std::make_shared<AppInfo>();
2020

2121
QQmlEngine::setObjectOwnership(m_appInfo.get(), QQmlEngine::CppOwnership);
22-
qmlRegisterSingletonInstance<AppInfo>("ScratchCPP.Ui", 1, 0, "AppInfo", m_appInfo.get());
22+
qmlRegisterSingletonInstance<AppInfo>("ScratchCPP.Global", 1, 0, "AppInfo", m_appInfo.get());
2323
modularity::ioc()->registerExport<IAppInfo>(m_appInfo);
2424

2525
modularity::ioc()->registerExport<FilePaths>(FilePaths::instance());

0 commit comments

Comments
 (0)