mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Changed condition for showing Open new instance item in dock icon menu (mac). Fix of #5463.
This commit is contained in:
		
							parent
							
								
									cbb306c86a
								
							
						
					
					
						commit
						159dde511e
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -59,10 +59,9 @@ public: | |||
|     PrusaSlicerTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE) : wxTaskBarIcon(iconType) {} | ||||
|     wxMenu *CreatePopupMenu() override { | ||||
|         wxMenu *menu = new wxMenu; | ||||
|         if(wxGetApp().app_config->get("single_instance") == "1") { | ||||
|         if(wxGetApp().app_config->get("single_instance") == "0") { | ||||
|             // Only allow opening a new PrusaSlicer instance on OSX if "single_instance" is disabled, 
 | ||||
|             // as starting new instances would interfere with the locking mechanism of "single_instance" support.
 | ||||
|             //FIXME Vojtech thinks the condition is wrong.
 | ||||
|             append_menu_item(menu, wxID_ANY, _L("Open new instance"), _L("Open a new PrusaSlicer instance"), | ||||
|             [this](wxCommandEvent&) { start_new_slicer(); }, "", nullptr); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Kocik
						David Kocik