Skip to content

Commit 863f856

Browse files
committed
presenter: Additional log messages for QML init.
1 parent 3756fbc commit 863f856

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

assets/test/nyan/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
install(DIRECTORY "."
22
DESTINATION "${ASSET_DIR}/test/nyan"
3-
FILES_MATCHING PATTERN "*.qml"
3+
FILES_MATCHING PATTERN "*.nyan"
44
)

libopenage/presenter/presenter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,19 @@ void Presenter::init_gui() {
158158
//// -- gui initialization
159159
// TODO: Do not use test GUI
160160
util::Path qml_root = this->root_dir / "assets" / "test" / "qml";
161+
log::log(INFO << "Presenter: Setting QML root to " << qml_root);
161162
if (not qml_root.is_dir()) {
162163
throw Error{ERR << "could not find qml root folder " << qml_root};
163164
}
164165

165166
util::Path qml_assets = this->root_dir / "assets";
167+
log::log(INFO << "Presenter: Setting QML asset path to " << qml_assets);
166168
if (not qml_assets.is_dir()) {
167169
throw Error{ERR << "could not find asset root folder " << qml_assets};
168170
}
169171

170172
util::Path qml_root_file = qml_root / "main.qml";
173+
log::log(INFO << "Presenter: Setting QML root file to " << qml_root_file);
171174
if (not qml_root_file.is_file()) {
172175
throw Error{ERR << "could not find main.qml file " << qml_root_file};
173176
}

0 commit comments

Comments
 (0)