mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	ENH: CLI: set the default pipe to null to remove warning
Change-Id: I9e2cbb3bba02892a6a97a6a3e0bd9b0f729d202a (cherry picked from commit 1b94c924919c60231e9a87717d0b51204e37dcbc)
This commit is contained in:
		
							parent
							
								
									4d958df4b3
								
							
						
					
					
						commit
						4e5ed34fde
					
				
					 2 changed files with 5 additions and 3 deletions
				
			
		|  | @ -519,10 +519,12 @@ int CLI::run(int argc, char **argv) | |||
|     ConfigOptionString* pipe_option = m_config.option<ConfigOptionString>("pipe"); | ||||
|     if (pipe_option) { | ||||
|         pipe_name = pipe_option->value; | ||||
|         BOOST_LOG_TRIVIAL(info) << boost::format("Will use pipe %1%")%pipe_name; | ||||
|         if (!pipe_name.empty()) { | ||||
|             BOOST_LOG_TRIVIAL(info) << boost::format("Will use pipe %1%")%pipe_name; | ||||
| #if defined(__linux__) || defined(__LINUX__) | ||||
|         g_cli_callback_mgr.start(pipe_name); | ||||
|             g_cli_callback_mgr.start(pipe_name); | ||||
| #endif | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     /*for (const std::string& file : m_input_files)
 | ||||
|  |  | |||
|  | @ -4668,7 +4668,7 @@ CLIActionsConfigDef::CLIActionsConfigDef() | |||
|     def->label = L("Send progress to pipe"); | ||||
|     def->tooltip = L("Send progress to pipe."); | ||||
|     def->cli_params = "pipename"; | ||||
|     def->set_default_value(new ConfigOptionString("cli_pipe")); | ||||
|     def->set_default_value(new ConfigOptionString("")); | ||||
| } | ||||
| 
 | ||||
| //BBS: remove unused command currently
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 lane.wei
						lane.wei