Continuity fixes

This commit is contained in:
JHubi1 2024-09-08 11:16:01 +02:00
parent e700df9724
commit dbe6dec4cc
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
7 changed files with 27 additions and 2 deletions

View File

@ -120,6 +120,11 @@
"description": "Tooltip for reset button",
"context": "Visible in the chat view"
},
"tooltipOptions": "Show options",
"@tooltipOptions": {
"description": "Tooltip for options button",
"context": "Visible in the chat view"
},
"noModelSelected": "No model selected",
"@noModelSelected": {
"description": "Text displayed when no model is selected",

View File

@ -549,8 +549,16 @@ class _MainAppState extends State<MainApp> {
height: 24,
width: 24,
child: IconButton(
tooltip: AppLocalizations.of(context)!
.tooltipReset,
tooltip: allowMultipleChats
? allowSettings
? AppLocalizations.of(
context)!
.tooltipOptions
: AppLocalizations.of(
context)!
.deleteChat
: AppLocalizations.of(context)!
.tooltipReset,
onPressed: () {
if (!chatAllowed &&
chatUuid ==
@ -942,6 +950,7 @@ class _MainAppState extends State<MainApp> {
const SizedBox(width: 4),
allowMultipleChats
? IconButton(
enableFeedback: false,
onPressed: () {
selectionHaptic();
if (!chatAllowed) return;

View File

@ -454,6 +454,7 @@ class _ScreenSettingsState extends State<ScreenSettings> {
.settingsHost,
hintText: "http://localhost:11434",
prefixIcon: IconButton(
enableFeedback: false,
tooltip: AppLocalizations.of(context)!
.tooltipAddHostHeaders,
onPressed: () async {
@ -495,6 +496,7 @@ class _ScreenSettingsState extends State<ScreenSettings> {
child:
const CircularProgressIndicator())
: IconButton(
enableFeedback: false,
tooltip:
AppLocalizations.of(context)!
.tooltipSave,

View File

@ -218,6 +218,7 @@ class _ScreenVoiceState extends State<ScreenVoice> {
child: Scaffold(
appBar: AppBar(
leading: IconButton(
enableFeedback: false,
onPressed: () {
Navigator.of(context).pop();
},
@ -240,6 +241,7 @@ class _ScreenVoiceState extends State<ScreenVoice> {
),
actions: [
IconButton(
enableFeedback: false,
onPressed: () {
speaking = false;
settingsOpen = false;

View File

@ -55,6 +55,7 @@ class _ScreenSettingsBehaviorState extends State<ScreenSettingsBehavior> {
alignLabelWithHint: true,
hintText: "You are a helpful assistant",
suffixIcon: IconButton(
enableFeedback: false,
tooltip:
AppLocalizations.of(context)!.tooltipSave,
onPressed: () {

View File

@ -854,6 +854,7 @@ Future<String> prompt(BuildContext context,
hintText: placeholder,
errorText: error,
suffixIcon: IconButton(
enableFeedback: false,
tooltip: AppLocalizations.of(context)!
.tooltipSave,
onPressed: submit,
@ -863,6 +864,7 @@ Future<String> prompt(BuildContext context,
.dialogEnterNewTitle &&
uuid != null)
? IconButton(
enableFeedback: false,
tooltip: AppLocalizations.of(context)!
.tooltipLetAIThink,
onPressed: () async {

View File

@ -4,6 +4,7 @@
"deleteChat",
"renameChat",
"tooltipReset",
"tooltipOptions",
"modelDialogAddPromptTitle",
"modelDialogAddPromptDescription",
"modelDialogAddPromptAlreadyExists",
@ -50,6 +51,7 @@
"deleteChat",
"renameChat",
"tooltipReset",
"tooltipOptions",
"modelDialogAddPromptTitle",
"modelDialogAddPromptDescription",
"modelDialogAddPromptAlreadyExists",
@ -96,6 +98,7 @@
"deleteChat",
"renameChat",
"tooltipReset",
"tooltipOptions",
"modelDialogAddPromptTitle",
"modelDialogAddPromptDescription",
"modelDialogAddPromptAlreadyExists",
@ -142,6 +145,7 @@
"deleteChat",
"renameChat",
"tooltipReset",
"tooltipOptions",
"modelDialogAddPromptTitle",
"modelDialogAddPromptDescription",
"modelDialogAddPromptAlreadyExists",