Skip to content

Commit

Permalink
modified forceUpdate method to only update props
Browse files Browse the repository at this point in the history
* forced update of parameters can cause components (such as JCombobox)
  tobe reset to 0th index, therefore the force updates only updates
  properties now. Since parameters should only change in the
  configuration wizard, it also makes more sense.
  • Loading branch information
jdeschamps committed Oct 15, 2020
1 parent cdef264 commit 7eaabef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,12 @@ public HashMap<String, UIProperty> getPropertiesMap(){
}

/**
* Updates all properties and parameters by calling {@link de.embl.rieslab.emu.ui.ConfigurableMainFrame#updateAllConfigurablePanels()}
* Updates all properties by calling {@link de.embl.rieslab.emu.ui.ConfigurableMainFrame#updateAllProperties()}
*
*/
public void forceUpdate(){
if(mainframe_ != null){
mainframe_.updateAllConfigurablePanels();
mainframe_.updateAllProperties();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

import de.embl.rieslab.emu.controller.SystemController;
import de.embl.rieslab.emu.controller.utils.SystemDialogs;
import de.embl.rieslab.emu.ui.ConfigurablePanel;
import de.embl.rieslab.emu.ui.internalproperties.InternalProperty;
import de.embl.rieslab.emu.ui.uiparameters.UIParameter;
import de.embl.rieslab.emu.ui.uiproperties.UIProperty;
Expand Down

0 comments on commit 7eaabef

Please sign in to comment.