Speech settings updated, no large decimals for settings. Also changing with quick settings keys now applies across window changes.
This commit is contained in:
1 parent
7ae2801e53
commit
6ee0454fbe
17 files changed
+406
-15
No files matched your search
@@ -70,8 +70,8 @@ func TestApplicationPreferencesSwitchAndPersistIndependently(t *testing.T) {
|
||||
if err != nil || !mapped || appLoaded.TimeFormat != "24-hour" || appLoaded.DateFormat != "numbers-mdy" || appLoaded.DefaultVoice.Rate == nil || !appLoaded.Reading.AutomaticallyReadClipboardChanges {
|
||||
t.Fatalf("application profile not saved: %+v, %t, %v", appLoaded, mapped, err)
|
||||
}
|
||||
if loaded.DefaultVoice.Rate != nil || loaded.Reading.AutomaticallyReadClipboardChanges {
|
||||
t.Fatal("application speech shortcut overwrote global voice")
|
||||
if loaded.DefaultVoice.Rate == nil || *loaded.DefaultVoice.Rate != 51 || loaded.Reading.AutomaticallyReadClipboardChanges {
|
||||
t.Fatal("speech shortcut did not save globally or leaked unrelated application settings")
|
||||
}
|
||||
restarted := newPreferencesWorker(slog.New(slog.DiscardHandler), loaded,
|
||||
settingsUpdateFunc(func(context.Context, speech.Settings) error { return nil }))
|
||||
|
||||
Reference in new issue
Block a user