Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
resume music playback after navigation message
  • Loading branch information
Karry committed Oct 25, 2020
1 parent 43db353 commit 84dd522
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions rpm/harbour-osmscout.changes.in
Expand Up @@ -426,3 +426,4 @@
- add cyclo route numbers to outdoor stylesheet
- add various amenity* historic* and leisure* icons to standard stylesheet
- change highway color to red/brown, navigation route to dark blue and make it wider for better visibility
- resume music playback after navigation message
6 changes: 6 additions & 0 deletions src/OSMScout.cpp
Expand Up @@ -141,6 +141,12 @@ Q_DECL_EXPORT int main(int argc, char* argv[])
qWarning() << "Usage of memory mapped files is NOT supported.";
#endif

QByteArray envVar = qgetenv("NEMO_RESOURCE_CLASS_OVERRIDE");
if (envVar.isEmpty()) {
// setup audio class to navigator, music player is paused on navigation message and resumed then
qputenv("NEMO_RESOURCE_CLASS_OVERRIDE", "navigator");
}

#ifdef QT_QML_DEBUG
qWarning() << "Starting QML debugger on port 1234.";
qQmlEnableDebuggingHelper.startTcpDebugServer(1234);
Expand Down

0 comments on commit 84dd522

Please sign in to comment.