Skip to content

Commit

Permalink
presenter: Additional log messages for QML init.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Oct 8, 2023
1 parent ee2735c commit f54d802
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libopenage/presenter/presenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,19 @@ void Presenter::init_gui() {
//// -- gui initialization
// TODO: Do not use test GUI
util::Path qml_root = this->root_dir / "assets" / "test" / "qml";
log::log(INFO << "Presenter: Setting QML root to " << qml_root.resolve_native_path());
if (not qml_root.is_dir()) {
throw Error{ERR << "could not find qml root folder " << qml_root};
}

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

util::Path qml_root_file = qml_root / "main.qml";
log::log(INFO << "Presenter: Setting QML root file to " << qml_root_file.resolve_native_path());
if (not qml_root_file.is_file()) {
throw Error{ERR << "could not find main.qml file " << qml_root_file};
}
Expand Down

0 comments on commit f54d802

Please sign in to comment.