Formatting

This commit is contained in:
JHubi1 2024-12-13 22:12:59 +01:00
parent b0a8f42771
commit 9a7d076a8e
No known key found for this signature in database
GPG Key ID: F538DC3FC5B07498
5 changed files with 12 additions and 5 deletions

View File

@ -171,6 +171,10 @@
"context": "Visible in the model dialog"
},
"modelDialogAddAllowanceTitle": "Allow Proxy",
"@modelDialogAddAllowanceTitle": {
"description": "Title of the allow proxy dialog",
"context": "Visible in the model dialog"
},
"modelDialogAddAllowanceDescription": "Ollama App must check if the entered model is valid. For that, we normally send a web request to the Ollama model list and check the status code, but because you're using the web client, we can't do that directly. Instead, the app will send the request to a different api, hosted by JHubi1, to check for us.\nThis is a one-time request and will only be sent when you add a new model.\nYour IP address will be sent with the request and might be stored for up to ten minutes to prevent spamming with potential harmful intentions.\nIf you accept, your selection will be remembered in the future; if not, nothing will be sent and the model won't be added.",
"@modelDialogAddAllowanceDescription": {
"description": "Description of the allow proxy dialog",
@ -598,6 +602,10 @@
"context": "Visible in the settings view"
},
"settingsVoiceTtsNotSupportedDescription": "Text-to-speech services are not supported for the selected language. Select a different language in the language drawer to reenable them.\nOther services like voice recognition and AI thinking will still work as usual, but interaction might not be as fluent.",
"@settingsVoiceTtsNotSupportedDescription": {
"description": "Description of the text-to-speech not supported message",
"context": "Visible in the settings view"
},
"settingsVoicePermissionNot": "Permissions not granted",
"@settingsVoicePermissionNot": {
"description": "Text displayed when voice permissions are not granted",

View File

@ -8,7 +8,6 @@ import 'worker/haptic.dart';
import 'worker/update.dart';
import 'worker/desktop.dart';
import 'worker/setter.dart';
import 'worker/clients.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'settings/behavior.dart';
@ -416,7 +415,7 @@ class _ScreenSettingsState extends State<ScreenSettings> {
}
return PopScope(
canPop: !hostLoading,
onPopInvoked: (didPop) {
onPopInvokedWithResult: (didPop, result) {
settingsOpen = false;
FocusManager.instance.primaryFocus?.unfocus();
},

View File

@ -199,7 +199,7 @@ class _ScreenVoiceState extends State<ScreenVoice> {
data: themeDark(),
child: PopScope(
canPop: !aiThinking,
onPopInvoked: (didPop) {
onPopInvokedWithResult: (didPop, result) {
if (!didPop) return;
speaking = false;
voice.stop();

View File

@ -212,7 +212,7 @@ class _ScreenSettingsVoiceState extends State<ScreenSettingsVoice> {
}
return PopScope(
onPopInvoked: (didPop) {
onPopInvokedWithResult: (didPop, result) {
if (usedIndex == -1) return;
prefs!.setString(
"voiceLanguage",

View File

@ -89,7 +89,7 @@ void setModel(BuildContext context, Function setState) {
setModalState = setLocalState;
return PopScope(
canPop: false,
onPopInvoked: (didPop) async {
onPopInvokedWithResult: (didPop, result) async {
if (!loaded) return;
loaded = false;
bool preload = false;