mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:10:06 +00:00 
			
		
		
		
	Position manager updates for tracking
This commit is contained in:
		
							parent
							
								
									400db66f09
								
							
						
					
					
						commit
						18f500fe5f
					
				
					 3 changed files with 29 additions and 17 deletions
				
			
		|  | @ -35,7 +35,6 @@ | |||
| 
 | ||||
| #include <boost/asio/post.hpp> | ||||
| #include <boost/asio/thread_pool.hpp> | ||||
| #include <boost/uuid/random_generator.hpp> | ||||
| #include <QDesktopServices> | ||||
| #include <QFileDialog> | ||||
| #include <QMessageBox> | ||||
|  | @ -63,7 +62,6 @@ class MainWindowImpl : public QObject | |||
| 
 | ||||
| public: | ||||
|    explicit MainWindowImpl(MainWindow* mainWindow) : | ||||
|        uuid_ {boost::uuids::random_generator()()}, | ||||
|        mainWindow_ {mainWindow}, | ||||
|        settings_ {}, | ||||
|        activeMap_ {nullptr}, | ||||
|  | @ -124,7 +122,7 @@ public: | |||
| 
 | ||||
|       if (settings::GeneralSettings::Instance().track_location().GetValue()) | ||||
|       { | ||||
|          positionManager_->TrackLocation(uuid_, true); | ||||
|          positionManager_->TrackLocation(true); | ||||
|       } | ||||
|    } | ||||
|    ~MainWindowImpl() { threadPool_.join(); } | ||||
|  | @ -155,8 +153,6 @@ public: | |||
| 
 | ||||
|    boost::asio::thread_pool threadPool_ {1u}; | ||||
| 
 | ||||
|    boost::uuids::uuid uuid_; | ||||
| 
 | ||||
|    MainWindow*           mainWindow_; | ||||
|    QMapLibreGL::Settings settings_; | ||||
|    map::MapProvider      mapProvider_; | ||||
|  | @ -872,13 +868,8 @@ void MainWindowImpl::ConnectOtherSignals() | |||
|               settings::GeneralSettings::Instance().track_location().StageValue( | ||||
|                  trackingEnabled); | ||||
| 
 | ||||
|               for (std::size_t i = 0; i < maps_.size(); ++i) | ||||
|               { | ||||
|                  // maps_[i]->SetTrackLocation(trackingEnabled);
 | ||||
|               } | ||||
| 
 | ||||
|               // Turn on location tracking (location manager)
 | ||||
|               positionManager_->TrackLocation(uuid_, trackingEnabled); | ||||
|               // Turn on location tracking
 | ||||
|               positionManager_->TrackLocation(trackingEnabled); | ||||
|            }); | ||||
|    connect(level2ProductsWidget_, | ||||
|            &ui::Level2ProductsWidget::RadarProductSelected, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat