mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +01:00
Hide EXIF settings on nextcloud 28+
This commit is contained in:
parent
d0b1568524
commit
5c9f51a110
1 changed files with 11 additions and 5 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue