Skip to content
Commit c2e8c892 authored by Peter Mühlenpfordt's avatar Peter Mühlenpfordt
Browse files

Keep statusbar visibility in sync with KToggleAction and persist states

Summary:
When switching to fullscreen view mode the statusbar is hidden but the
`KToggleAction` is not updated. This leads to unhiding the statusbar
after applying config dialog and forcing the user to press {key F3}
twice to show the statusbar.
This patch keeps visibility and action state in sync by using persistent
`GwenviewConfig` values for browse mode and normal/fullscreen view
modes like sidebar.

Test Plan:
Switch browse/view, normal/fullscreen modes.
The statusbar state should always restore to previous setting.
Three different states are (re)stored:
* Browse mode (always equal in normal/fullscreen mode)
* View mode normal (windowed) mode
* View mode fullscreen mode

Reviewers: #gwenview, rkflx

Reviewed By: #gwenview, rkflx

Subscribers: rkflx

Differential Revision: https://phabricator.kde.org/D10577
parent 543f0b9c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment