Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
a825503d
Commit
a825503d
authored
May 04, 2021
by
Wolfgang Rohdewald
Browse files
disable demo toggle during scoring games
parent
022ff842
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mainwindow.py
View file @
a825503d
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment