mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-25 01:31:14 -06:00 
			
		
		
		
	Fix of the "dock" menu on OSX to start a new instance of PrusaSlicer
in case a single instance is disabled. Make the "single_instance" enabled by default on OSX initially to match the platform.
This commit is contained in:
		
							parent
							
								
									570f7b648e
								
							
						
					
					
						commit
						7896de892b
					
				
					 3 changed files with 12 additions and 3 deletions
				
			
		|  | @ -56,7 +56,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.
 | ||||
|             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
	
	 Vojtech Bubnik
						Vojtech Bubnik