File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/ui/buttons Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,22 @@ import androidx.compose.material.IconButton
55import androidx.compose.material.icons.Icons
66import androidx.compose.material.icons.rounded.Menu
77import androidx.compose.runtime.Composable
8+ import cafe.adriel.voyager.navigator.LocalNavigator
9+ import cafe.adriel.voyager.navigator.currentOrThrow
10+ import cz.frantisekmasa.wfrp_master.common.core.LocalStaticConfiguration
11+ import cz.frantisekmasa.wfrp_master.common.core.config.Platform
812import cz.frantisekmasa.wfrp_master.common.localization.LocalStrings
913
1014@Composable
1115fun HamburgerButton () {
16+ if (
17+ LocalStaticConfiguration .current.platform == Platform .Desktop &&
18+ LocalNavigator .currentOrThrow.canPop
19+ ) {
20+ BackButton ()
21+ return
22+ }
23+
1224 val callback = LocalHamburgerButtonHandler .current
1325 IconButton (onClick = callback) {
1426 Icon (
You can’t perform that action at this time.
0 commit comments