mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-07 22:15:38 -05:00
Fix warnings
This commit is contained in:
@@ -146,7 +146,6 @@ PanelWindow {
|
||||
|
||||
TextArea {
|
||||
id: textArea
|
||||
text: SessionData.notepadContent
|
||||
placeholderText: qsTr("Start typing your notes here...")
|
||||
font.family: SettingsData.monoFontFamily
|
||||
font.pixelSize: Theme.fontSizeMedium
|
||||
@@ -164,6 +163,19 @@ PanelWindow {
|
||||
rightPadding: Theme.spacingM
|
||||
bottomPadding: Theme.spacingM
|
||||
|
||||
Component.onCompleted: {
|
||||
text = SessionData.notepadContent
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: SessionData
|
||||
function onNotepadContentChanged() {
|
||||
if (textArea.text !== SessionData.notepadContent) {
|
||||
textArea.text = SessionData.notepadContent
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onTextChanged: {
|
||||
if (text !== SessionData.notepadContent) {
|
||||
SessionData.notepadContent = text
|
||||
|
||||
Reference in New Issue
Block a user