23 lines
510 B
QML
23 lines
510 B
QML
pragma Singleton
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
import ZShell.Llm
|
|
import qs.Helpers
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
property ChatSession chatSession
|
|
readonly property string title: chatSession ? chatSession.title : "Chat"
|
|
property int currentIdx: -1
|
|
property bool inChat: false
|
|
property bool fabExpanded: false
|
|
property bool isWindow: false
|
|
property ShellScreen screen
|
|
property bool sidebarVisible: Visibilities.getForActive().sidebar
|
|
|
|
onSidebarVisibleChanged: if (!sidebarVisible)
|
|
fabExpanded = false
|
|
}
|