File browser remembers filters too well #70583

Closed
opened 2019-10-06 13:05:30 +02:00 by Sybren A. Stüvel · 14 comments

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.30

Blender Version
Broken: version: 2.81 (sub 14), branch: master, commit date: 2019-10-05 20:51, hash: 4707f1982d
Worked: probably a week or two ago, before the "it remembers stuff" feature was implemented.

Short description of error
The new File Browser remembers various things, like its layout and filter settings, between invocations. After saving the current blend file, the file browser in the "Video Editing" workspace is set up for showing only blend files.

Exact steps for others to reproduce the error

  • Open Blender in factory default settings.
  • Set user preference Interface → Temporary Windows → File Browser to Full Screen.
  • Save the blend file to a directory that contains video files, say $DIR.
  • Add the "Video Editing" workspace from the "Video Editing" category.
  • Look at the file browser in the top left of the screen; it is showing $DIR (which IMO is good), but it doesn't show any of the video files (which is bad for a video editing workspace).
  • Look at the file browser's filter settings; it's set up to only show blend files.
**System Information** Operating system: Windows-10-10.0.17763 64 Bits Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.30 **Blender Version** Broken: version: 2.81 (sub 14), branch: master, commit date: 2019-10-05 20:51, hash: `4707f1982d` Worked: probably a week or two ago, before the "it remembers stuff" feature was implemented. **Short description of error** The new File Browser remembers various things, like its layout and filter settings, between invocations. After saving the current blend file, the file browser in the "Video Editing" workspace is set up for showing only blend files. **Exact steps for others to reproduce the error** * Open Blender in factory default settings. * Set user preference Interface → Temporary Windows → File Browser to Full Screen. * Save the blend file to a directory that contains video files, say $DIR. * Add the "Video Editing" workspace from the "Video Editing" category. * Look at the file browser in the top left of the screen; it is showing $DIR (which IMO is good), but it doesn't show any of the video files (which is bad for a video editing workspace). * Look at the file browser's filter settings; it's set up to only show blend files.
Author
Member

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren
Julian Eisel was assigned by Sybren A. Stüvel 2019-10-06 13:06:13 +02:00
Member

I can't recreate this here, at least not with given steps.
Opening a file browser through an operator like Ctrl+S intentionally runs a different initialization path than a regular file browser editor. Only in the former case we restore the settings.

The only way I see this could break is when the file browser is launched in full screen mode ({nav Preferences > Interface > Editors > Temporary Windows}) from the already opened file browser editor in the Video Editing workspace. The old fullscreen code uses the same space data then for the regular and the fullscreen file browser. We might in fact want to change this here.

Anyway, I'm not sure how this could break and I can't recreate this. Are you sure the given steps are correct?

I can't recreate this here, at least not with given steps. Opening a file browser through an operator like Ctrl+S intentionally runs a different initialization path than a regular file browser editor. Only in the former case we restore the settings. The only way I see this could break is when the file browser is launched in full screen mode ({nav Preferences > Interface > Editors > Temporary Windows}) from the already opened file browser editor in the *Video Editing* workspace. The old fullscreen code uses the same space data then for the regular and the fullscreen file browser. We might in fact want to change this here. Anyway, I'm not sure how this could break and I can't recreate this. Are you sure the given steps are correct?

Added subscriber: @mont29

Added subscriber: @mont29

This is still needing feedback… You should be able to sort that at the studio directly?

This is still needing feedback… You should be able to sort that at the studio directly?
Member

Sybren wasn't here for most of last week, he will be back tomorrow I think.

Sybren wasn't here for most of last week, he will be back tomorrow I think.
Author
Member

Yup, I'll be @ BI tomorrow.

Yup, I'll be @ BI tomorrow.
Author
Member

It requires setting the user pref Interface → Temporary Windows → File Browser to Full Screen. @JulianEisel and I did a quick test and it also happens in 2.79 (and probably older).

It requires setting the user pref Interface → Temporary Windows → File Browser to Full Screen. @JulianEisel and I did a quick test and it also happens in 2.79 (and probably older).
Member

It's also important that your mouse hovers the existing File Editor while doing {nav Ctrl+S}, {nav Ctrl+O} or whatever.
My earlier post explains what's happening. Basically it is an old issue from the way the fullscreen areas are designed/implemented.
Strictly speaking it isn't a bug even. I'd like to look into it nevertheless.

Again for the records, this was not introduced by our changes, they just made it more apparent.

It's also important that your mouse hovers the existing File Editor while doing {nav Ctrl+S}, {nav Ctrl+O} or whatever. My earlier post explains what's happening. Basically it is an old issue from the way the fullscreen areas are designed/implemented. Strictly speaking it isn't a bug even. I'd like to look into it nevertheless. Again for the records, this was not introduced by our changes, they just made it more apparent.

Added subscriber: @brecht

Added subscriber: @brecht

If it happens in 2.79 it's not a 2.81 blocker.

If it happens in 2.79 it's not a 2.81 blocker.
Member

This isn't a bug strictly speaking, since it behaves as designed. The old design is pretty useless though, so leaving this open as a ToDo task.

This isn't a bug strictly speaking, since it behaves as designed. The old design is pretty useless though, so leaving this open as a ToDo task.
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

Getting this to work in a non hackish way would require some general changes. Ideally, I'd like to rework the entire fullscreen code, the way it is currently is not very flexible and has long reached its limits. We already added many hacks to get it to do what we want, it's very difficult to understand what's going on internally.

So while I agree this sucks, this is something for the UI TODO list, added an entry there.

Getting this to work in a non hackish way would require some general changes. Ideally, I'd like to rework the entire fullscreen code, the way it is currently is not very flexible and has long reached its limits. We already added many hacks to get it to do what we want, it's very difficult to understand what's going on internally. So while I agree this sucks, this is something for the UI TODO list, added an entry there.
Member

Thinking about this while investigating a related bug - what are you thoughts on entirely destroying SpaceFile.params when closing a temp file browser @mont29? That would solve issues like these, and I think it's reasonable to keep these parameters separate for regular file editors from temporary ones.

I guess we'd want to keep the params of the regular editor around so we can restore them on temp editor exit.

Sounds like a reasonable & simple workaround that doesn't require rewriting fullscreen handling.

Thinking about this while investigating a related bug - what are you thoughts on entirely destroying `SpaceFile.params` when closing a temp file browser @mont29? That would solve issues like these, and I think it's reasonable to keep these parameters separate for regular file editors from temporary ones. I guess we'd want to keep the params of the regular editor around so we can restore them on temp editor exit. Sounds like a reasonable & simple workaround that doesn't require rewriting fullscreen handling.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#70583
No description provided.