Fixed click not working for non-local branches items on side panel
Regression of change https://github.com/JetpackDuba/Gitnuro/pull/11
This commit is contained in:
parent
21c6f98bb3
commit
4bda2eb681
1 changed files with 2 additions and 7 deletions
|
@ -28,7 +28,7 @@ fun SideMenuSubentry(
|
||||||
iconResourcePath: String,
|
iconResourcePath: String,
|
||||||
bold: Boolean = false,
|
bold: Boolean = false,
|
||||||
extraPadding: Dp = 0.dp,
|
extraPadding: Dp = 0.dp,
|
||||||
onClick: (() -> Unit)? = null,
|
onClick: () -> Unit = {},
|
||||||
onDoubleClick: (() -> Unit)? = null,
|
onDoubleClick: (() -> Unit)? = null,
|
||||||
additionalInfo: @Composable () -> Unit = {}
|
additionalInfo: @Composable () -> Unit = {}
|
||||||
) {
|
) {
|
||||||
|
@ -36,12 +36,7 @@ fun SideMenuSubentry(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.height(ENTRY_HEIGHT.dp)
|
.height(ENTRY_HEIGHT.dp)
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.run {
|
.combinedClickable(onClick = onClick, onDoubleClick = onDoubleClick)
|
||||||
if (onClick != null && onDoubleClick != null)
|
|
||||||
combinedClickable(onClick = onClick, onDoubleClick = onDoubleClick)
|
|
||||||
else
|
|
||||||
this
|
|
||||||
}
|
|
||||||
.padding(start = extraPadding),
|
.padding(start = extraPadding),
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue