ai service: rename currentModel and model in setModel for clarity

This commit is contained in:
end-4
2025-05-15 23:10:21 +02:00
parent 9fdf7bd6a4
commit b2c1ad628e
2 changed files with 23 additions and 19 deletions
@@ -533,7 +533,7 @@ int main(int argc, char* argv[]) {
font.weight: Font.DemiBold
color: Appearance.m3colors.m3onSurface
elide: Text.ElideRight
text: Ai.models[Ai.currentModel].name
text: Ai.getModel().name
}
}
StyledToolTip {
@@ -541,7 +541,7 @@ int main(int argc, char* argv[]) {
extraVisibleCondition: false
alternativeVisibleCondition: mouseArea.containsMouse // Show tooltip when hovered
content: StringUtils.format(qsTr("Current model: {0}\nSet it with {1}model MODEL"),
Ai.models[Ai.currentModel].name, root.commandPrefix)
Ai.getModel().name, root.commandPrefix)
}
MouseArea {