implemented device placement preset system more places. Vastly improved speed on setting network multiplier and activating network. Fixed timing issues on progress bar
This commit is contained in:
@@ -6,6 +6,7 @@ class ToolkitProgressBar(tqdm):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.paused = False
|
||||
self.last_time = self._time()
|
||||
|
||||
def pause(self):
|
||||
if not self.paused:
|
||||
@@ -15,7 +16,9 @@ class ToolkitProgressBar(tqdm):
|
||||
def unpause(self):
|
||||
if self.paused:
|
||||
self.paused = False
|
||||
self.start_t += self._time() - self.last_time
|
||||
cur_t = self._time()
|
||||
self.start_t += cur_t - self.last_time
|
||||
self.last_print_t = cur_t
|
||||
|
||||
def update(self, *args, **kwargs):
|
||||
if not self.paused:
|
||||
|
||||
Reference in New Issue
Block a user