Bug 450944

Summary: Dolphin git plugin doesn't show the files status badges until you open a new tab
Product: [Applications] dolphin Reporter: Hosameldin <hosam.awadalla>
Component: plugins: gitAssignee: Sebastian Dörner <sebastian>
Status: RESOLVED FIXED    
Severity: minor CC: aldo.latino, hosam.awadalla, kfm-devel, meven29
Priority: NOR    
Version: 21.12.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 24.05
Attachments: a picture shows two split screens, one with the files badges and other is without them.

Description Hosameldin 2022-02-28 01:27:03 UTC
Created attachment 147178 [details]
a picture shows two split screens, one with the files badges and other is without them.

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Enable the git plugin go to Settings > Configure Dolphin... > Services.
2. Open Dolphin and navigate to a git directory.


OBSERVED RESULT
The badges don't appear (99% of the time), and the right-click menu doesn't show the plugin-related options.
Open a new tab (or split-screen), and see the badge appear again in the newly opened window and also the related options.

EXPECTED RESULT
When opening a new instance of Dolphin and going to a git directory, the badges should appear.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.24.2
(available in About System)
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Hosameldin 2022-02-28 23:50:58 UTC
> Open a new tab (or split-screen), and see the badge appear again in the newly opened window and also the related options.

I think the accurate description is this when opening a new Dolphin window and the location happens to be a git folder, it shows the badges normally. This could happen whether you open Dolphin from a git folder location, a new tab, or a split-screen. When opening Dolphin from a non-git location, the issue appears.
Comment 2 Aldo Latino 2024-04-07 16:59:52 UTC
(In reply to Hosameldin from comment #1)
> > Open a new tab (or split-screen), and see the badge appear again in the newly opened window and also the related options.
> 
> I think the accurate description is this when opening a new Dolphin window
> and the location happens to be a git folder, it shows the badges normally.
> This could happen whether you open Dolphin from a git folder location, a new
> tab, or a split-screen. When opening Dolphin from a non-git location, the
> issue appears.

In my installation this problem occurs when Dolphin is opened from my home folder. If Dolphin is opened showing any other folder, I see the badges in a Git-controlled directory.