@@ -670,27 +670,20 @@ fun SettingsScreen(
670670 onClick = { showAboutSortMediaDialog = true }
671671 )
672672 },
673- SettingContent (keywords = listOf (" gitlab " , " source code" )) {
673+ SettingContent (keywords = listOf (" github " , " source code" )) {
674674 val uriHandler = LocalUriHandler .current
675675 SettingsItem (
676- title = " GitLab " ,
677- summary = " gitlab .com/LoopOtto/CleanSweep" ,
678- onClick = { uriHandler.openUri(" https://gitlab .com/LoopOtto/cleansweep " ) }
676+ title = " GitHub " ,
677+ summary = " github .com/LoopOtto/CleanSweep" ,
678+ onClick = { uriHandler.openUri(" https://github .com/LoopOtto/CleanSweep " ) }
679679 )
680680 },
681- SettingContent (keywords = listOf (" github" , " suspension" , " source code" )) {
681+ SettingContent (keywords = listOf (" gitlab" , " source code" , " mirror" )) {
682+ val uriHandler = LocalUriHandler .current
682683 SettingsItem (
683- title = buildAnnotatedString {
684- withStyle(style = SpanStyle (textDecoration = TextDecoration .LineThrough )) {
685- append(" GitHub" )
686- }
687- },
688- summary = buildAnnotatedString {
689- withStyle(style = SpanStyle (textDecoration = TextDecoration .LineThrough )) {
690- append(" github.com/LoopOtto/CleanSweep" )
691- }
692- },
693- onClick = viewModel::showGitHubSuspensionDialog
684+ title = " GitLab" ,
685+ summary = " gitlab.com/LoopOtto/CleanSweep (read-only mirror)" ,
686+ onClick = { uriHandler.openUri(" https://gitlab.com/LoopOtto/cleansweep" ) }
694687 )
695688 },
696689 SettingContent (keywords = listOf (" open-source licenses" , " libraries" )) {
@@ -787,10 +780,6 @@ fun SettingsScreen(
787780 )
788781 }
789782
790- if (uiState.showGitHubSuspensionDialog) {
791- GitHubSuspensionDialog (onDismiss = viewModel::dismissGitHubSuspensionDialog)
792- }
793-
794783 if (uiState.showDuplicateScanScopeDialog) {
795784 val (title, list, isForInclude) = if (duplicateScanScope == DuplicateScanScope .INCLUDE_LIST ) {
796785 Triple (" Manage Include List" , duplicateScanIncludeList, true )
@@ -979,20 +968,6 @@ fun SettingsScreen(
979968 }
980969}
981970
982- @Composable
983- private fun GitHubSuspensionDialog (onDismiss : () -> Unit ) {
984- AppDialog (
985- onDismissRequest = onDismiss,
986- title = { Text (" About GitHub..." ) },
987- text = { Text (" We moved to GitLab because of a random and unjustified suspension on GitHub. We're hoping for a reply to our appeal and a formal explanation." ) },
988- buttons = {
989- TextButton (onClick = onDismiss) {
990- Text (" Close" )
991- }
992- }
993- )
994- }
995-
996971private fun formatPathForDisplay (path : String ): Pair <String , String > {
997972 val file = File (path)
998973 val name = file.name
0 commit comments