Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Elisa
Commits
87bed79e
Commit
87bed79e
authored
Sep 14, 2020
by
Matthieu Gallien
🎵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
let initial view be saved on quit and restore on start
parent
2cfe1e4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/qml/ContentView.qml
src/qml/ContentView.qml
+1
-1
src/qml/ElisaMainWindow.qml
src/qml/ElisaMainWindow.qml
+8
-1
No files found.
src/qml/ContentView.qml
View file @
87bed79e
...
...
@@ -19,6 +19,7 @@ RowLayout {
property
bool
showExpandedFilterView
property
alias
currentViewIndex
:
listViews
.
currentIndex
property
Kirigami.ContextDrawer
playlistDrawer
property
alias
initialIndex
:
viewManager
.
initialIndex
function
goBack
()
{
viewManager
.
goBack
()
...
...
@@ -41,7 +42,6 @@ RowLayout {
id
:
viewManager
viewsData
:
viewsData
initialIndex
:
3
onOpenGridView
:
{
if
(
configurationData
.
expectedDepth
===
1
)
{
...
...
src/qml/ElisaMainWindow.qml
View file @
87bed79e
...
...
@@ -16,7 +16,7 @@ import Qt.labs.platform 1.1
Kirigami.ApplicationWindow
{
id
:
mainWindow
visible
:
true
contextDrawer
:
Kirigami.ContextDrawer
{
...
...
@@ -49,6 +49,8 @@ Kirigami.ApplicationWindow {
Accessible.role
:
Accessible
.
Application
Accessible.name
:
title
readonly
property
int
initialViewIndex
:
3
property
var
goBackAction
:
ElisaApplication
.
action
(
"
go_back
"
)
property
var
seekAction
:
ElisaApplication
.
action
(
"
Seek
"
)
property
var
scrubAction
:
ElisaApplication
.
action
(
"
Scrub
"
)
...
...
@@ -125,6 +127,8 @@ Kirigami.ApplicationWindow {
property
bool
showPlaylist
:
true
property
bool
headerBarIsMaximized
:
false
property
int
initialIndex
}
Connections
{
...
...
@@ -155,6 +159,8 @@ Kirigami.ApplicationWindow {
persistentSettings
.
showPlaylist
=
contentView
.
showPlaylist
persistentSettings
.
headerBarIsMaximized
=
headerBar
.
isMaximized
persistentSettings
.
initialIndex
=
contentView
.
currentViewIndex
}
}
...
...
@@ -286,6 +292,7 @@ Kirigami.ApplicationWindow {
showPlaylist
:
persistentSettings
.
showPlaylist
showExpandedFilterView
:
persistentSettings
.
expandedFilterView
playlistDrawer
:
playlistDrawer
initialIndex
:
persistentSettings
.
value
(
'
initialIndex
'
,
initialViewIndex
)
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment