mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
Fix regression introduced by previous QML commits
Now you can again swipe a pages and id is correct
This commit is contained in:
parent
d7f90b74a3
commit
88eb005c93
|
@ -24,7 +24,7 @@ import org.kde.kirigami 2.10 as Kirigami
|
|||
import org.kde.okular.app 2.0
|
||||
|
||||
Kirigami.ApplicationWindow {
|
||||
id: root
|
||||
id: fileBrowserRoot
|
||||
|
||||
readonly property int columnWidth: Kirigami.Units.gridUnit * 13
|
||||
|
||||
|
@ -65,7 +65,7 @@ Kirigami.ApplicationWindow {
|
|||
}
|
||||
contextDrawer: OkularDrawer {
|
||||
contentItem.implicitWidth: columnWidth
|
||||
modal: !root.wideScreen
|
||||
modal: !fileBrowserRoot.wideScreen
|
||||
onModalChanged: drawerOpen = !modal
|
||||
enabled: documentItem.opened && pageStack.layers.depth < 2
|
||||
handleVisible: enabled && pageStack.layers.depth < 2
|
||||
|
@ -80,6 +80,7 @@ Kirigami.ApplicationWindow {
|
|||
pageStack.initialPage: MainView {
|
||||
id: pageArea
|
||||
document: documentItem
|
||||
Kirigami.ColumnView.preventStealing: true
|
||||
}
|
||||
|
||||
Component {
|
||||
|
|
Loading…
Reference in a new issue