Commit a825503d authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

disable demo toggle during scoring games

parent 022ff842
......@@ -190,7 +190,9 @@ class MainWindow(KXmlGuiWindow):
self.centralView.setScene(value)
self.adjustMainView()
self.updateGUI()
self.actionChat.setEnabled(isinstance(value, PlayingScene))
canDemo = not value or isinstance(value, PlayingScene)
self.actionChat.setEnabled(canDemo)
self.actionAutoPlay.setEnabled(canDemo)
self.actionExplain.setEnabled(value is not None)
self.actionScoreTable.setEnabled(value is not None)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment