Skip to content

Commit

Permalink
Bugfix: ASCIIRender, Fix modules order, and do not allow to repositio…
Browse files Browse the repository at this point in the history
…n modules based on @notes
  • Loading branch information
pylover committed Jul 6, 2021
1 parent 408c1a6 commit 4020149
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions dial/ascii/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,12 @@ def _planmodules(self):
self._moduleplans.append(module)
self._moduleplans_dict[m] = module

for k, v in self.diagram.modules.items():
if k not in self._moduleplans_dict:
module = ModulePlan(self.diagram.modules[k])
self._moduleplans.append(module)
self._moduleplans_dict[k] = module

def _fromto_modules(self, from_, to, reverse=False):
capt = False

Expand Down
2 changes: 1 addition & 1 deletion dial/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def _new_call(self, call):

def _new_note(self, note):
for m in note.modules:
self._ensuremodule(m, visible=True)
self._ensuremodule(m, visible=False)

self.current.append(note)

Expand Down

0 comments on commit 4020149

Please sign in to comment.