mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	macos eject
This commit is contained in:
		
							parent
							
								
									b267e986fb
								
							
						
					
					
						commit
						12cb9a8143
					
				
					 3 changed files with 10 additions and 0 deletions
				
			
		|  | @ -427,6 +427,10 @@ bool RemovableDriveManager::update(const long time, bool check) | |||
| 			return false; // return value shouldnt matter if update didnt run
 | ||||
| 		} | ||||
| 	} | ||||
|     if(check) | ||||
|     { | ||||
|         m_rdmmm->log("update"); | ||||
|     } | ||||
| 	search_for_drives(); | ||||
| 	if(check)check_and_notify(); | ||||
| 	return !m_current_drives.empty(); | ||||
|  | @ -468,6 +472,7 @@ void RemovableDriveManager::check_and_notify() | |||
| 	//std::cout<<"drives count: "<<m_drives_count;
 | ||||
| 	if(m_drives_count != m_current_drives.size()) | ||||
| 	{ | ||||
|         m_rdmmm->log("drives count not same"); | ||||
| 		//std::cout<<" vs "<< m_current_drives.size();
 | ||||
| 		if(m_callbacks.size() != 0 && m_drives_count > m_current_drives.size() && m_last_save_path != "" && !is_drive_mounted(m_last_save_path)) | ||||
| 		{ | ||||
|  |  | |||
|  | @ -80,6 +80,7 @@ public: | |||
|     ~RDMMMWrapper(); | ||||
|     void register_window(); | ||||
|     void list_devices(); | ||||
|     void log(const std::string &msg); | ||||
| protected: | ||||
|     void *m_imp; | ||||
|     //friend void RemovableDriveManager::inspect_file(const std::string &path, const std::string &parent_path);
 | ||||
|  |  | |||
|  | @ -61,6 +61,10 @@ void  RDMMMWrapper::list_devices() | |||
| 		} | ||||
|     } | ||||
| } | ||||
| void RDMMMWrapper::log(const std::string &msg) | ||||
| { | ||||
|     NSLog(@"%s", msg.c_str()); | ||||
| } | ||||
| }}//namespace Slicer::GUI | ||||
| 
 | ||||
| /* | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Slic3rPE
						Slic3rPE