mirror of
https://github.com/KDE/audiotube.git
synced 2025-12-30 03:18:04 -05:00
Main: Store window geomety with KConfig.WindowStateSaver
This commit is contained in:
@@ -9,6 +9,7 @@ import org.kde.kirigami as Kirigami
|
||||
import QtMultimedia
|
||||
|
||||
import org.kde.ytmusic 1.0
|
||||
import org.kde.config as KConfig
|
||||
|
||||
import org.nemomobile.qtmpris 1.0
|
||||
|
||||
@@ -30,6 +31,10 @@ Kirigami.ApplicationWindow {
|
||||
property bool wideScreen: width >= 600
|
||||
property bool showSearch: false // only applicable if not widescreen
|
||||
|
||||
KConfig.WindowStateSaver {
|
||||
configGroupName: "Window"
|
||||
}
|
||||
|
||||
// so that there is still a separator, since the header style is none
|
||||
Kirigami.Separator {
|
||||
anchors.top: parent.top
|
||||
|
||||
Reference in New Issue
Block a user