Drop extra method
parent
7e366d18cb
commit
6fa8958acf
|
@ -62,19 +62,6 @@ class SettingsPane:
|
||||||
# encompasing high level namespace
|
# encompasing high level namespace
|
||||||
order_mode: Optional['OrderMode'] = None # typing: ignore # noqa
|
order_mode: Optional['OrderMode'] = None # typing: ignore # noqa
|
||||||
|
|
||||||
def on_selection_change(
|
|
||||||
self,
|
|
||||||
|
|
||||||
text: str,
|
|
||||||
key: str,
|
|
||||||
|
|
||||||
) -> None:
|
|
||||||
'''Called on any order pane drop down selection change.
|
|
||||||
|
|
||||||
'''
|
|
||||||
log.info(f'selection input: {text}')
|
|
||||||
self.on_ui_settings_change(key, text)
|
|
||||||
|
|
||||||
def on_ui_settings_change(
|
def on_ui_settings_change(
|
||||||
self,
|
self,
|
||||||
|
|
||||||
|
@ -85,6 +72,7 @@ class SettingsPane:
|
||||||
'''Called on any order pane edit field value change.
|
'''Called on any order pane edit field value change.
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
log.info(f'selection input: {value}')
|
||||||
mode = self.order_mode
|
mode = self.order_mode
|
||||||
|
|
||||||
if key == 'account':
|
if key == 'account':
|
||||||
|
|
|
@ -733,7 +733,7 @@ async def open_order_mode(
|
||||||
|
|
||||||
w.currentTextChanged.connect(
|
w.currentTextChanged.connect(
|
||||||
partial(
|
partial(
|
||||||
order_pane.on_selection_change,
|
order_pane.on_ui_settings_change,
|
||||||
key=key,
|
key=key,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue