forked from Shinonome/dots-hyprland
ai: fix chat.json doesn't exist warning
This commit is contained in:
@@ -887,8 +887,8 @@ Singleton {
|
|||||||
|
|
||||||
FileView {
|
FileView {
|
||||||
id: chatSaveFile
|
id: chatSaveFile
|
||||||
property string chatName: "chat"
|
property string chatName: ""
|
||||||
path: `${Directories.aiChats}/${chatName}.json`
|
path: chatName.length > 0 ? `${Directories.aiChats}/${chatName}.json` : ""
|
||||||
blockLoading: true // Prevent race conditions
|
blockLoading: true // Prevent race conditions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user