dispose the legs-closed subscription when the [synth] ladder is closed
This commit is contained in:
1 parent
27b87febda
commit
7112c40a4a
1 file changed
+2
-1
@@ -136,12 +136,13 @@ namespace bts.shell {
|
||||
vm.order_properties_vm.use_algo_param_grid = _ladder_conf.use_algo_param_grid;
|
||||
vm.request_settings_dialog += open_settings_dialog;
|
||||
var settings_subscription = _settings_hub.subscribe_default_settings().Subscribe(on_user_settings);
|
||||
IDisposable contract_legs_window_family_hook = null;
|
||||
vm.OnDisposed += disposing => {
|
||||
Disposable.dispose(ref settings_subscription);
|
||||
Disposable.dispose(ref active_settings_dialog);
|
||||
Disposable.dispose(ref settings_subject);
|
||||
Disposable.dispose(ref contract_legs_window_family_hook);
|
||||
};
|
||||
IDisposable contract_legs_window_family_hook = null;
|
||||
vm.request_toggle_contract_legs_expanded += toggle_contract_legs_expanded;
|
||||
if (contract_legs_window_family != null)
|
||||
on_contract_legs_expanded(contract_legs_window_family);
|
||||
|
||||
Reference in new issue
Block a user