Skip to content

Commit 88542bd

Browse files
author
cool-RR
committed
-
1 parent a94d4ed commit 88542bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

garlicsim_wx/garlicsim_wx/gui_project.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init_general(self, simpack, frame, project=None):
119119
The job of the playing leaf, which should be crunched to infinity.
120120
'''
121121

122-
self.default_buffer = 100 # Should be a mechanism for setting !tododoc
122+
self.default_buffer = 5 # Should be a mechanism for setting !tododoc
123123
'''The default clock buffer to crunch from an active node.'''
124124
# tododoc: rename to autocrunch?
125125

@@ -478,8 +478,9 @@ def set_pseudoclock(self, desired_pseudoclock,
478478

479479
def set_default_buffer(self, default_buffer):
480480
self.default_buffer = default_buffer
481-
self.project.ensure_buffer(self.active_node,
482-
clock_buffer=self.default_buffer)
481+
if self.active_node:
482+
self.project.ensure_buffer(self.active_node,
483+
clock_buffer=self.default_buffer)
483484
self.default_buffer_modified_emitter.emit()
484485

485486

garlicsim_wx/garlicsim_wx/widgets/workspace_widgets/crunching_controls/cruncher_controls/cruncher_selection_dialog.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515

1616
class CruncherSelectionDialog(CuteDialog):
17-
# tododoc: make it respect Esc. (SetEscapeId or ID_CANCEL)
1817
def __init__(self, cruncher_controls):
1918
CuteDialog.__init__(
2019
self,

0 commit comments

Comments
 (0)