mirror of
https://github.com/haveno-dex/haveno.git
synced 2026-01-04 09:05:36 -05:00
fix bugs with bindings
This commit is contained in:
parent
29ad94c4d9
commit
c8699dd66b
5 changed files with 61 additions and 26 deletions
|
|
@ -43,10 +43,13 @@ public class CodeBehind<T extends PresentationModel> implements Initializable {
|
|||
root.sceneProperty().addListener((ov, oldValue, newValue) -> {
|
||||
// we got removed from the scene
|
||||
// lets terminate
|
||||
if (oldValue != null && newValue == null) terminate();
|
||||
if (oldValue != null && newValue == null)
|
||||
terminate();
|
||||
|
||||
});
|
||||
|
||||
presentationModel.initialized();
|
||||
presentationModel.activate();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -55,8 +58,10 @@ public class CodeBehind<T extends PresentationModel> implements Initializable {
|
|||
*/
|
||||
public void terminate() {
|
||||
log.trace("Lifecycle: terminate " + this.getClass().getSimpleName());
|
||||
if (childController != null) childController.terminate();
|
||||
if (childController != null)
|
||||
childController.terminate();
|
||||
|
||||
presentationModel.deactivate();
|
||||
presentationModel.terminate();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue