diff --git a/src/main/kotlin/main/Compare.kt b/src/main/kotlin/main/Compare.kt index 26c10c5..d7172eb 100644 --- a/src/main/kotlin/main/Compare.kt +++ b/src/main/kotlin/main/Compare.kt @@ -81,7 +81,7 @@ fun compareResults( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } } diff --git a/src/main/kotlin/main/CompareGlossary.kt b/src/main/kotlin/main/CompareGlossary.kt index 9911a99..3abc255 100644 --- a/src/main/kotlin/main/CompareGlossary.kt +++ b/src/main/kotlin/main/CompareGlossary.kt @@ -98,7 +98,7 @@ fun glossaryList( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } } diff --git a/src/main/kotlin/main/CompareProject.kt b/src/main/kotlin/main/CompareProject.kt index 925cb91..c0b7254 100644 --- a/src/main/kotlin/main/CompareProject.kt +++ b/src/main/kotlin/main/CompareProject.kt @@ -96,7 +96,7 @@ fun projectList( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } } diff --git a/src/main/kotlin/main/Detail.kt b/src/main/kotlin/main/Detail.kt index 697d34d..c37d1c0 100644 --- a/src/main/kotlin/main/Detail.kt +++ b/src/main/kotlin/main/Detail.kt @@ -144,7 +144,7 @@ fun glossaryDetailedPage( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } } diff --git a/src/main/kotlin/main/Glossary.kt b/src/main/kotlin/main/Glossary.kt index b8818fd..93669a9 100644 --- a/src/main/kotlin/main/Glossary.kt +++ b/src/main/kotlin/main/Glossary.kt @@ -168,7 +168,7 @@ fun glossariesPage( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } } diff --git a/src/main/kotlin/main/nb_occurrence.kt b/src/main/kotlin/main/nb_occurrence.kt index 20ca34e..6f5bfff 100644 --- a/src/main/kotlin/main/nb_occurrence.kt +++ b/src/main/kotlin/main/nb_occurrence.kt @@ -125,7 +125,7 @@ fun parsedWordsTable( noFileSnackbarVisibleState.value = true return@dropdownButtonComponent } else { - isCompareClicked = true + currentPage.value = "compareProject" } } }