Skip to content

Commit

Permalink
put connection mechanism from sleeping
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bonani committed Jul 20, 2021
1 parent f51c03a commit bf6e1c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aseba/launcher/src/launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ Q_INVOKABLE QString Launcher::filenameForLocale(QString pattern) {
bool Launcher::isZeroconfRunning() const {
return m_client->isZeroconfBrowserConnected();
}
#ifdef Q_OS_IOS
#if defined(Q_OS_IOS) || defined(Q_OS_ANDROID)
Q_INVOKABLE void Launcher::applicationStateChanged(Qt::ApplicationState state) {
static Qt::ApplicationState lastState = Qt::ApplicationActive;

Expand Down
2 changes: 1 addition & 1 deletion aseba/launcher/src/launcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Launcher : public QObject {
#ifdef Q_OS_OSX
bool doLaunchPlaygroundBundle() const;
#endif
#ifdef Q_OS_IOS
#if defined(Q_OS_IOS) || defined(Q_OS_ANDROID)
Q_INVOKABLE void applicationStateChanged(Qt::ApplicationState state);
#endif

Expand Down
2 changes: 1 addition & 1 deletion aseba/launcher/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ int main(int argc, char** argv) {
app.setActivationWindow(&w, true);
app.setQuitOnLastWindowClosed(false);

#ifdef Q_OS_IOS
#if defined(Q_OS_IOS) || defined(Q_OS_ANDROID)
QObject::connect(&app, &QGuiApplication::applicationStateChanged, &launcher, &mobsya::Launcher::applicationStateChanged);
#endif
return app.exec();
Expand Down

0 comments on commit bf6e1c6

Please sign in to comment.