two buttons

This commit is contained in:
IndusAryan 2024-05-14 20:17:51 +05:30
parent f4fbde2147
commit 63af6dfc4d
2 changed files with 8 additions and 4 deletions

View File

@ -444,7 +444,8 @@ object AppUtils {
PluginsFragment.newInstance(
repositoryName,
repos.last().url,
false))
false)
)
}
}
}
@ -453,8 +454,11 @@ object AppUtils {
AlertDialog.Builder(this).apply {
setTitle(repositoryName)
setMessage(R.string.download_all_plugins_from_repo)
setPositiveButton(R.string.open_downloaded_repo) { _, _ ->
openAddedRepo()
// won't show "open button" when adding from settings
if (!isExtensionsFragment) {
setPositiveButton(R.string.open_downloaded_repo) { _, _ ->
openAddedRepo()
}
}
setNegativeButton(R.string.dismiss, null)
show().setDefaultFocus()

View File

@ -612,7 +612,7 @@
<string name="view_public_repositories_button">View community repositories</string>
<string name="view_public_repositories_button_short">Public list</string>
<string name="uppercase_all_subtitles">Uppercase all subtitles</string>
<string name="download_all_plugins_from_repo">CloudStream 3 does not takes any responsibility for using 3rd-party extensions neither provides support for them</string>
<string name="download_all_plugins_from_repo">Warning: CloudStream 3 does not takes any responsibility for using 3rd-party extensions neither provides support for them!</string>
<string name="single_plugin_disabled" formatted="true">%s (Disabled)</string>
<string name="tracks">Tracks</string>
<string name="audio_tracks">Audio tracks</string>