mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-11-04 10:13:59 +00:00
fix: mark spotube org as official for plugins
This commit is contained in:
parent
69a310c78f
commit
a23497867a
@ -83,7 +83,7 @@ class MetadataInstalledPluginItem extends HookConsumerWidget {
|
||||
final repoOwner = repoUrl?.pathSegments.firstOrNull;
|
||||
|
||||
final isOfficial =
|
||||
repoUrl?.host == "github.com" && repoOwner == "KRTirtho";
|
||||
repoUrl?.host == "github.com" && ["KRTirtho", "spotube"].contains(repoOwner);
|
||||
|
||||
return Basic(
|
||||
leading: snapshot.hasData
|
||||
|
||||
@ -57,7 +57,7 @@ class MetadataPluginRepositoryItem extends HookConsumerWidget {
|
||||
.downloadAndCachePlugin(pluginRepo.repoUrl);
|
||||
|
||||
if (!context.mounted) return;
|
||||
final isOfficialPlugin = pluginRepo.owner == "KRTirtho";
|
||||
final isOfficialPlugin = ["KRTirtho", "spotube"].contains(pluginRepo.owner);
|
||||
|
||||
final isAllowed = isOfficialPlugin
|
||||
? true
|
||||
@ -157,7 +157,7 @@ class MetadataPluginRepositoryItem extends HookConsumerWidget {
|
||||
child: Text(context.l10n.install),
|
||||
),
|
||||
),
|
||||
if (pluginRepo.owner != "KRTirtho")
|
||||
if (!["KRTirtho", "spotube"].contains(pluginRepo.owner))
|
||||
Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
@ -181,7 +181,7 @@ class MetadataPluginRepositoryItem extends HookConsumerWidget {
|
||||
spacing: 8,
|
||||
runSpacing: 8,
|
||||
children: [
|
||||
if (pluginRepo.owner == "KRTirtho")
|
||||
if (["KRTirtho", "spotube"].contains(pluginRepo.owner))
|
||||
PrimaryBadge(
|
||||
leading: const Icon(SpotubeIcons.done),
|
||||
child: Text(context.l10n.official),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user