ARRG, disable `dunst` notifications for now in order mode
parent
fa88924f84
commit
06b80ff9ed
|
@ -104,4 +104,6 @@ async def notify_from_ems_status_msg(
|
||||||
log.runtime(result)
|
log.runtime(result)
|
||||||
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
log.warn('Tried to send a notification but \'notify-send\' not present')
|
log.warn(
|
||||||
|
'Tried to send a notification but \'notify-send\' not present'
|
||||||
|
)
|
||||||
|
|
|
@ -973,6 +973,12 @@ async def process_trade_msg(
|
||||||
client: OrderClient,
|
client: OrderClient,
|
||||||
msg: dict,
|
msg: dict,
|
||||||
|
|
||||||
|
# emit linux DE notification?
|
||||||
|
# XXX: currently my experience with `dunst` is that this
|
||||||
|
# is horrible slow and clunky and invasive and noisy so i'm
|
||||||
|
# disabling it for now until we find a better UX solution..
|
||||||
|
do_notify: bool = False,
|
||||||
|
|
||||||
) -> tuple[Dialog, Status]:
|
) -> tuple[Dialog, Status]:
|
||||||
|
|
||||||
fmsg = pformat(msg)
|
fmsg = pformat(msg)
|
||||||
|
@ -1092,6 +1098,7 @@ async def process_trade_msg(
|
||||||
)
|
)
|
||||||
mode.lines.remove_line(uuid=oid)
|
mode.lines.remove_line(uuid=oid)
|
||||||
msg.req = req
|
msg.req = req
|
||||||
|
if do_notify:
|
||||||
await notify_from_ems_status_msg(msg)
|
await notify_from_ems_status_msg(msg)
|
||||||
|
|
||||||
# response to completed 'dialog' for order request
|
# response to completed 'dialog' for order request
|
||||||
|
@ -1101,6 +1108,7 @@ async def process_trade_msg(
|
||||||
req=req,
|
req=req,
|
||||||
):
|
):
|
||||||
msg.req = Order(**req)
|
msg.req = Order(**req)
|
||||||
|
if do_notify:
|
||||||
await notify_from_ems_status_msg(msg)
|
await notify_from_ems_status_msg(msg)
|
||||||
mode.lines.remove_line(uuid=oid)
|
mode.lines.remove_line(uuid=oid)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue