From 96ecfc71385f478888ca22deee915bda5f70f491 Mon Sep 17 00:00:00 2001 From: Sveinbjorn Thordarson Date: Wed, 3 Nov 2021 12:45:40 +0000 Subject: [PATCH] Disabling hotword training route prior to release build --- lib/main.dart | 2 +- lib/menu.dart | 18 +++++++++--------- lib/settings.dart | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 9900229..51b532a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -29,7 +29,7 @@ import './common.dart' show dlog, kSoftwareName; import './loc.dart' show LocationTracking; import './prefs.dart' show Prefs; import './session.dart' show SessionRoute; -import './theme.dart' show defaultTheme, darkTheme; +import './theme.dart' show defaultTheme; import './hotword.dart' show HotwordDetector; void main() async { diff --git a/lib/menu.dart b/lib/menu.dart index 5db6846..4935f3e 100644 --- a/lib/menu.dart +++ b/lib/menu.dart @@ -36,14 +36,14 @@ void _pushSettingsRoute(BuildContext context, dynamic arg) { ); } -void _pushHotwordTrainingRoute(BuildContext context, dynamic arg) { - // Navigator.push( - // context, - // MaterialPageRoute( - // builder: (context) => TrainingRoute(), - // ), - // ); -} +// void _pushHotwordTrainingRoute(BuildContext context, dynamic arg) { +// Navigator.push( +// context, +// MaterialPageRoute( +// builder: (context) => TrainingRoute(), +// ), +// ); +// } void _pushWebRoute(BuildContext context, dynamic arg) { Navigator.push( @@ -75,7 +75,7 @@ ListView _generateMenu(BuildContext context) { padding: const EdgeInsets.all(8), children: [ _generateTile('Stillingar', 'cog', _pushSettingsRoute, context, null), - _generateTile('Þjálfa raddvirkjun', 'cog', _pushHotwordTrainingRoute, context, null), + //_generateTile('Þjálfa raddvirkjun', 'cog', _pushHotwordTrainingRoute, context, null), _generateTile('Um Emblu', 'cube', _pushWebRoute, context, kAboutURL), _generateTile('Leiðbeiningar', 'cube', _pushWebRoute, context, kInstructionsURL), _generateTile('Persónuvernd', 'cube', _pushWebRoute, context, kPrivacyURL), diff --git a/lib/settings.dart b/lib/settings.dart index 91d1d83..a72627e 100644 --- a/lib/settings.dart +++ b/lib/settings.dart @@ -484,7 +484,7 @@ class SettingsRoute extends StatelessWidget { if (kReleaseMode == false) { slist.addAll([ // SettingsSegmentedWidget( - // label: 'Talgreining', items: ['Google', 'Tíró'], prefKey: 'speech2text_server'), + // label: 'Talgreining', items: ['Google', 'Tiro'], prefKey: 'speech2text_server'), QueryServerSegmentedWidget(items: kQueryServerPresetOptions, prefKey: 'query_server'), ]); }