Skip to content

Commit

Permalink
Optimize WFS layers handling on iOS (#3561)
Browse files Browse the repository at this point in the history
* new environment variable for ios

* commenting issue
  • Loading branch information
VitorVieiraZ authored Aug 9, 2024
1 parent 10a281e commit 6ef7f74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,11 @@ int main( int argc, char *argv[] )
// See issue #3431 -> disable Android accessibility features to prevent ANRs
qputenv( "QT_ANDROID_DISABLE_ACCESSIBILITY", "1" );
#endif
#ifdef Q_OS_IOS
// See issue #3561 -> WFS layers causing stress on iOS
qputenv( "QGIS_USE_SHARED_MEMORY_KEEP_ALIVE", "1" );
qDebug() << "Setting QGIS_USE_SHARED_MEMORY_KEEP_ALIVE environment variable TRUE";
#endif

// AppSettings has to be initialized after QGIS app init (because of correct reading/writing QSettings).
AppSettings as;
Expand Down

0 comments on commit 6ef7f74

Please sign in to comment.