Removed submodules component
This commit is contained in:
parent
ff49090928
commit
03a52cb4ce
2 changed files with 5 additions and 4 deletions
|
@ -13,12 +13,13 @@ import androidx.compose.ui.graphics.Color
|
|||
import androidx.compose.ui.input.key.onPreviewKeyEvent
|
||||
import androidx.compose.ui.input.pointer.*
|
||||
|
||||
fun Modifier.backgroundIf(condition: Boolean, color: Color): Modifier {
|
||||
fun Modifier.backgroundIf(condition: Boolean, color: Color, elseColor: Color? = null): Modifier {
|
||||
return if (condition) {
|
||||
this.background(color)
|
||||
} else {
|
||||
} else if(elseColor != null) {
|
||||
this.background(elseColor)
|
||||
} else
|
||||
this
|
||||
}
|
||||
}
|
||||
|
||||
fun Modifier.handMouseClickable(onClick: () -> Unit): Modifier {
|
||||
|
|
|
@ -352,7 +352,7 @@ fun MainContentView(
|
|||
Remotes()
|
||||
Tags()
|
||||
Stashes()
|
||||
Submodules()
|
||||
// TODO: Enable on 1.2.0 when fully implemented Submodules()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue