Skip to content

Commit bb4a952

Browse files
committed
tweak: less confusing settings for autosave and shape recognition
1 parent 346b03e commit bb4a952

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

lib/i18n/en.i18n.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ settings:
9191
recentColorsDontSavePresets: Don't save preset colors in recent colors
9292
recentColorsLength: How many recent colors to store
9393
printPageIndicators: Print page indicators
94-
autosaveDelay: Auto-save delay
94+
autosave: Auto-save
9595
shapeRecognitionDelay: Shape recognition delay
9696
autoStraightenLines: Auto straighten lines
9797
simplifiedHomeLayout: Simplified home layout
@@ -111,7 +111,7 @@ settings:
111111
editorPromptRename: You can always rename notes later
112112
hideHomeBackgrounds: For a cleaner look
113113
printPageIndicators: Show page indicators in exports
114-
autosaveDelay: How long to wait before auto-saving a note
114+
autosave: Auto-save after a short delay, or never
115115
shapeRecognitionDelay: How often to update the shape preview
116116
autoStraightenLines: Straightens long lines without having to use the shape pen
117117
simplifiedHomeLayout: Sets a fixed height for each note preview
@@ -146,6 +146,8 @@ settings:
146146
select: Select
147147
mustBeEmpty: Selected folder must be empty
148148
mustBeDoneSyncing: Make sure syncing is complete before changing the folder
149+
autosaveDisabled: Never
150+
shapeRecognitionDisabled: Never
149151
logs:
150152
logs: Logs
151153
viewLogs: View logs

lib/i18n/strings_en.g.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ class TranslationsSettingsEn {
106106
String get resyncEverything => 'Resync everything';
107107
String get openDataDir => 'Open Saber folder';
108108
late final TranslationsSettingsCustomDataDirEn customDataDir = TranslationsSettingsCustomDataDirEn.internal(_root);
109+
String get autosaveDisabled => 'Never';
110+
String get shapeRecognitionDisabled => 'Never';
109111
}
110112

111113
// Path: logs
@@ -383,7 +385,7 @@ class TranslationsSettingsPrefLabelsEn {
383385
String get recentColorsDontSavePresets => 'Don\'t save preset colors in recent colors';
384386
String get recentColorsLength => 'How many recent colors to store';
385387
String get printPageIndicators => 'Print page indicators';
386-
String get autosaveDelay => 'Auto-save delay';
388+
String get autosave => 'Auto-save';
387389
String get shapeRecognitionDelay => 'Shape recognition delay';
388390
String get autoStraightenLines => 'Auto straighten lines';
389391
String get simplifiedHomeLayout => 'Simplified home layout';
@@ -408,7 +410,7 @@ class TranslationsSettingsPrefDescriptionsEn {
408410
String get editorPromptRename => 'You can always rename notes later';
409411
String get hideHomeBackgrounds => 'For a cleaner look';
410412
String get printPageIndicators => 'Show page indicators in exports';
411-
String get autosaveDelay => 'How long to wait before auto-saving a note';
413+
String get autosave => 'Auto-save after a short delay, or never';
412414
String get shapeRecognitionDelay => 'How often to update the shape preview';
413415
String get autoStraightenLines => 'Straightens long lines without having to use the shape pen';
414416
String get simplifiedHomeLayout => 'Sets a fixed height for each note preview';

lib/pages/home/settings.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -484,25 +484,26 @@ class _SettingsPageState extends State<SettingsPage> {
484484
],
485485
),
486486
SettingsSelection(
487-
title: t.settings.prefLabels.autosaveDelay,
488-
subtitle: t.settings.prefDescriptions.autosaveDelay,
487+
title: t.settings.prefLabels.autosave,
488+
subtitle: t.settings.prefDescriptions.autosave,
489489
icon: Icons.save,
490490
pref: Prefs.autosaveDelay,
491-
options: const [
491+
options: [
492492
ToggleButtonsOption(5000, Text('5s')),
493493
ToggleButtonsOption(10000, Text('10s')),
494-
ToggleButtonsOption(-1, Icon(Icons.close)),
494+
ToggleButtonsOption(-1, Text(t.settings.autosaveDisabled)),
495495
],
496496
),
497497
SettingsSelection(
498498
title: t.settings.prefLabels.shapeRecognitionDelay,
499499
subtitle: t.settings.prefDescriptions.shapeRecognitionDelay,
500500
icon: FontAwesomeIcons.shapes,
501501
pref: Prefs.shapeRecognitionDelay,
502-
options: const [
502+
options: [
503503
ToggleButtonsOption(500, Text('0.5s')),
504504
ToggleButtonsOption(1000, Text('1s')),
505-
ToggleButtonsOption(-1, Icon(Icons.close)),
505+
ToggleButtonsOption(
506+
-1, Text(t.settings.shapeRecognitionDisabled)),
506507
],
507508
afterChange: (ms) {
508509
ShapePen.debounceDuration = ShapePen.getDebounceFromPref();

0 commit comments

Comments
 (0)