Merge pull request #85 from informatik-ag-ngl/b/activeThemeEdit
Fixed not updating theme when editing active theme bug.
This commit is contained in:
		@@ -143,7 +143,11 @@ public class ThemeCustomizationPanel extends SettingsPanel {
 | 
				
			|||||||
				}, (name) -> {
 | 
									}, (name) -> {
 | 
				
			||||||
					// Modify theme
 | 
										// Modify theme
 | 
				
			||||||
					Settings.getInstance().getThemes().replace(name, new Theme(name, temporaryTheme));
 | 
										Settings.getInstance().getThemes().replace(name, new Theme(name, temporaryTheme));
 | 
				
			||||||
 | 
										if(themes.getSelectedItem().equals(name)) {
 | 
				
			||||||
 | 
											EventBus.getInstance().dispatch(new ThemeChangeEvent(Settings.getInstance().getTheme(name)));
 | 
				
			||||||
 | 
										}else {
 | 
				
			||||||
						themes.setSelectedItem(name);
 | 
											themes.setSelectedItem(name);
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
				}).setVisible(true);
 | 
									}).setVisible(true);
 | 
				
			||||||
				themeChanged = false;
 | 
									themeChanged = false;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user