Diff view closes if user clicks on a different stash/commit

This commit is contained in:
Abdelilah El Aissaoui 2021-12-07 01:21:12 +01:00
parent d4991bf7b4
commit bf6600878b

View file

@ -32,7 +32,11 @@ fun RepositoryOpenPage(gitManager: GitManager) {
var showNewBranchDialog by remember { mutableStateOf(false) }
var (selectedItem, setSelectedItem) = remember { mutableStateOf<SelectedItem>(SelectedItem.None) }
val (selectedItem, setSelectedItem) = remember { mutableStateOf<SelectedItem>(SelectedItem.None) }
LaunchedEffect(selectedItem) {
diffSelected = null
}
if(showNewBranchDialog) {
NewBranchDialog(