@ -87,6 +87,8 @@ Window {
}
}
property bool hasShownModelDownload: false
function startupDialogs ( ) {
if ( ! LLM . compatHardware ) {
Network . sendNonCompatHardware ( ) ;
@ -100,9 +102,10 @@ Window {
return ;
}
/ / c h e c k f o r a n y c u r r e n t m o d e l s a n d i f n o t , o p e n d o w n l o a d d i a l o g
if ( ModelList . installedModels . count === 0 && ! firstStartDialog . opened ) {
/ / c h e c k f o r a n y c u r r e n t m o d e l s a n d i f n o t , o p e n d o w n l o a d d i a l o g o n c e
if ( ! hasShownModelDownload && ModelList . installedModels . count === 0 && ! firstStartDialog . opened ) {
downloadNewModels . open ( ) ;
hasShownModelDownload = true ;
return ;
}
@ -654,8 +657,18 @@ Window {
anchors.fill: parent
color: currentChat . isServer ? theme.backgroundDark : theme . backgroundLight
Text {
text: qsTr ( "You must install a model via the download dialog to continue. The download dialog can be accessed via the drawer button in the top left corner and then clicking the 'Downloads' button." )
color: theme . textColor
width: 500
wrapMode: Text . WordWrap
anchors.centerIn: parent
visible: ModelList . installedModels . count === 0
}
ListView {
id: listView
visible: ModelList . installedModels . count !== 0
anchors.fill: parent
model: chatModel