Skip to content

Commit

Permalink
Prevent buttons from displaying in play-only mode, suppress debug option
Browse files Browse the repository at this point in the history
  • Loading branch information
cmang committed Mar 7, 2023
1 parent 82ccde9 commit bca5ae4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions durdraw/durdraw_ui_curses.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ def __init__(self, app):
self.testWindowSize()
self.realmaxY,self.realmaxX = self.realstdscr.getmaxyx()
#self.statusBar = StatusBar(self.stdscr, x=self.realmaxY - 2, y=0)
self.statusBar = StatusBar(self, x=self.statusBarLineNum, y=0)
#self.gui.add_widget(self.statusBar)
for button in self.statusBar.buttons:
self.gui.add_button(button)
if self.appState.playOnlyMode is False:
self.statusBar = StatusBar(self, x=self.statusBarLineNum, y=0)
for button in self.statusBar.buttons:
self.gui.add_button(button)
self.setWindowTitle("Durdraw")
self.statusBarLineNum = self.realmaxY - 2

Expand Down
2 changes: 1 addition & 1 deletion durdraw/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def main():
parser.add_argument("-u", "--undosize", help="Set the number of undo history states - default is 100. More requires more RAM, less saves RAM.", nargs=1, type=int)
parser.add_argument("-V", "--version", help="Show version number and exit",
action="store_true")
parser.add_argument("--debug", action="store_true")
parser.add_argument("--debug", action="store_true", help=argparse.SUPPRESS)
args = parser.parse_args()
if args.version:
print(DUR_VER)
Expand Down

0 comments on commit bca5ae4

Please sign in to comment.