Skip to content

Commit

Permalink
Disabling hotword training route prior to release build
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Nov 3, 2021
1 parent 74e339b commit 96ecfc7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
18 changes: 9 additions & 9 deletions lib/menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -75,7 +75,7 @@ ListView _generateMenu(BuildContext context) {
padding: const EdgeInsets.all(8),
children: <Widget>[
_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),
Expand Down
2 changes: 1 addition & 1 deletion lib/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
]);
}
Expand Down

0 comments on commit 96ecfc7

Please sign in to comment.