Bug 507311

Summary: Left sidebar missing until restarting the app when opening files in Koko externally
Product: [Applications] Koko Reporter: Nate Graham <nate>
Component: GeneralAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: olib141
Priority: NOR Keywords: regression
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nate Graham 2025-07-21 14:04:31 UTC
STEPS TO REPRODUCE
1. Set Koko to be your default image viewer
2. Navigate to a location in Dolphin or Plasma Folder View with images
3. Click or double-click on an image to open it in Koko
4. Once Koko loads the image, press the Back button

OBSERVED RESULT
I'm taken to a grid view, but the left sidebar never re-appears.

EXPECTED RESULT
I'm taken to a grid view and the left sidebar re-appears.
Comment 1 Bug Janitor Service 2025-08-05 15:53:42 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/koko/-/merge_requests/205
Comment 2 Oliver Beard 2025-08-06 13:59:16 UTC
Git commit 627e90df3c9527a8e00d70b9f8c02df4690f2f96 by Oliver Beard.
Committed on 05/08/2025 at 18:35.
Pushed by olib into branch 'master'.

Refactor OpenFileModel and fix argument/'Open With' behaviour

More of the logic about what to open is handled in OpenFileModel, and Koko now handles arguments properly relating to incomplete model porting and broken code, fixing the 'Open With' functionality.

M  +6    -6    src/main.cpp
M  +6    -8    src/models/imagefoldermodel.cpp
M  +1    -0    src/models/imagefoldermodel.h
M  +43   -23   src/models/openfilemodel.cpp
M  +26   -7    src/models/openfilemodel.h
M  +4    -7    src/models/sortmodel.cpp
M  +2    -3    src/qml/ImageViewPage.qml
M  +76   -46   src/qml/Main.qml
M  +1    -1    src/qml/Sidebar.qml

https://invent.kde.org/graphics/koko/-/commit/627e90df3c9527a8e00d70b9f8c02df4690f2f96