Merge lp://staging/~mefrio-g/scratch/fix-1258260 into lp://staging/~elementary-apps/scratch/scratch
Proposed by
Mario Guerriero
Status: | Merged |
---|---|
Approved by: | Niclas Lockner |
Approved revision: | 1281 |
Merged at revision: | 1292 |
Proposed branch: | lp://staging/~mefrio-g/scratch/fix-1258260 |
Merge into: | lp://staging/~elementary-apps/scratch/scratch |
Diff against target: |
204 lines (+45/-26) 3 files modified
plugins/outline/CtagsSymbolResolver.vala (+7/-0) plugins/outline/OutlinePlugin.vala (+29/-8) plugins/outline/ValaSymbolResolver.vala (+9/-18) |
To merge this branch: | bzr merge lp://staging/~mefrio-g/scratch/fix-1258260 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Niclas Lockner (community) | Approve | ||
Review via email: mp+215567@code.staging.launchpad.net |
Commit message
Don't show outline pane if there is nothing to outline. Fixes bug #1258260
To post a comment you must log in.
The filter_ generated_ fields method in ValaSymbolResolver in unused now that the call at diff line 118 is removed. Should n't it be removed as well?
I noticed three situations where it doesn't work as expected:
When I start Scratch, the empty outline pane is shown alongside the welcome screen.
If the outline pane is shown when the last tab is closed (e.g. one single vala file opened and then closed), the outline pane is still shown alongside the welcome screen. If I instead let the last closed tab be a non-vala file, it works as expected.
If I open some new tabs with new or existing non-vala documents and then switch between them, the outline pane appears. It hides itself when I open yet another tab.