Skip to content

Commit 384b047

Browse files
authored
Merge pull request #2435 from dpalou/MOBILE-3459
MOBILE-3459 more: Allow disabling QR reader in main menu
2 parents f28fcf0 + 81e013b commit 384b047

File tree

1 file changed

+2
-1
lines changed
  • src/core/mainmenu/pages/more

1 file changed

+2
-1
lines changed

src/core/mainmenu/pages/more/more.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export class CoreMainMenuMorePage implements OnDestroy {
6767
this.updateSiteObserver = eventsProvider.on(CoreEventsProvider.SITE_UPDATED, this.loadSiteInfo.bind(this),
6868
sitesProvider.getCurrentSiteId());
6969
this.loadSiteInfo();
70-
this.showScanQR = this.utils.canScanQR();
70+
this.showScanQR = this.utils.canScanQR() &&
71+
!this.sitesProvider.getCurrentSite().isFeatureDisabled('CoreMainMenuDelegate_QrReader');
7172
}
7273

7374
/**

0 commit comments

Comments
 (0)