Hide EXIF settings on nextcloud 28+

This commit is contained in:
Ming Ming 2024-11-10 22:55:50 +08:00
parent d0b1568524
commit 5c9f51a110

View file

@ -4,7 +4,9 @@ import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:nc_photos/app_localizations.dart'; import 'package:nc_photos/app_localizations.dart';
import 'package:nc_photos/controller/account_controller.dart';
import 'package:nc_photos/controller/pref_controller.dart'; import 'package:nc_photos/controller/pref_controller.dart';
import 'package:nc_photos/controller/server_controller.dart';
import 'package:nc_photos/debug_util.dart'; import 'package:nc_photos/debug_util.dart';
import 'package:nc_photos/k.dart' as k; import 'package:nc_photos/k.dart' as k;
import 'package:nc_photos/language_util.dart' as language_util; import 'package:nc_photos/language_util.dart' as language_util;
@ -79,11 +81,15 @@ class _SettingsState extends State<Settings> {
description: L10n.global().settingsThemeDescription, description: L10n.global().settingsThemeDescription,
pageBuilder: () => const ThemeSettings(), pageBuilder: () => const ThemeSettings(),
), ),
_SubPageItem( if (!context
leading: const Icon(Icons.local_offer_outlined), .read<AccountController>()
label: L10n.global().settingsMetadataTitle, .serverController
pageBuilder: () => const MetadataSettings(), .isSupported(ServerFeature.ncMetadata))
), _SubPageItem(
leading: const Icon(Icons.local_offer_outlined),
label: L10n.global().settingsMetadataTitle,
pageBuilder: () => const MetadataSettings(),
),
_SubPageItem( _SubPageItem(
leading: const Icon(Icons.image_outlined), leading: const Icon(Icons.image_outlined),
label: L10n.global().photosTabLabel, label: L10n.global().photosTabLabel,