We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a17341f + 21f8d0a commit 6c3e941Copy full SHA for 6c3e941
common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/compendium/career/CareerDetailScreen.kt
@@ -205,10 +205,12 @@ class CareerDetailScreen(
205
TabPager(fullWidthTabs = true) {
206
tab(strings.tabDetail) {
207
Column {
208
- VisibilitySwitchBar(
209
- visible = career.isVisibleToPlayers,
210
- onChange = { screenModel.update(career.changeVisibility(it)) },
211
- )
+ if (isGameMaster) {
+ VisibilitySwitchBar(
+ visible = career.isVisibleToPlayers,
+ onChange = { screenModel.update(career.changeVisibility(it)) },
212
+ )
213
+ }
214
215
LazyColumn(contentPadding = PaddingValues(Spacing.bodyPadding)) {
216
item {
0 commit comments