Skip to content

Commit

Permalink
Settings app now uses auto-detect progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
CRImier committed Jun 1, 2018
1 parent fc217f1 commit 6e05c1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/settings/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
except:
import http.client as httplib

# Using a TextProgressBar because only it shows a message on the screen for now
from ui import Menu, PrettyPrinter, DialogBox, TextProgressBar, Listbox
from ui import Menu, PrettyPrinter, DialogBox, ProgressBar, Listbox
from helpers.logger import setup_logger

import logging_ui
Expand Down Expand Up @@ -93,7 +92,7 @@ def revert_step(self, step_name):

def update(self):
logger.info("Starting update process")
pb = TextProgressBar(i, o, message="Updating ZPUI")
pb = ProgressBar(i, o, message="Updating ZPUI")
pb.run_in_background()
progress_per_step = 100 / len(self.steps)

Expand Down

0 comments on commit 6e05c1d

Please sign in to comment.