Skip to content

Commit

Permalink
fix: menu option becomes invalid after using bpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
jackusay committed Oct 3, 2024
1 parent 7f5234b commit a5c2ca5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cd_fif4.py
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,9 @@ def do_key_down(ag_, key, data=''):
m.ag.hide() #hide find window #will this cause problem???
m.ag.update()
logx("di_fict - end")

# after using bpanel, without this line, menu option becomes invalid until CudaText is restarted.
bpanel.click_fict_or_fiat = False
return upd
#return m.do_acts(ag, 'di_find') #do_acts() again will reset m.opts

Expand Down Expand Up @@ -1658,6 +1661,9 @@ def do_key_down(ag_, key, data=''):
#quit() #raise error
#m.ag.show() #useless
logx("di_fiat -end")

# after using bpanel, without this line, menu option becomes invalid until CudaText is restarted.
bpanel.click_fict_or_fiat = False
return upd

pass; msg_box('??do '+aid)
Expand Down Expand Up @@ -3555,6 +3561,7 @@ def build_tree(self, trfm):
pass; log4fun=0
pass; log__('trfm={}, self.rfrgs=\n{}',trfm, pfw(self.rfrgs,60) ,__=(log4fun,Reporter.log4cls)) if _log4mod>=0 else 0
logx(f"trfm: {trfm}") #P_LL

if trfm == TRFM_PLL: # <path(r:c:w)>: line
return [dcta(tp='fr', frs=[fr]) for fr in self.rfrgs]

Expand Down

0 comments on commit a5c2ca5

Please sign in to comment.