UIList with filters disabled still displays plus sign for opening filter fields #43455

Closed
opened 2015-01-29 02:18:55 +01:00 by Philipp Hemmer · 14 comments

pasted_file

I've created following list and disabled the filtering with 'use_filter_show = False'.
I would expect that the plus sign is not visible anymore, but it is.

class SCENE_UL_ds_effect_collection(bpy.types.UIList):
    
    def draw_item(self, context, layout, data, item, icon, active_data, active_propname):
        self.use_filter_show = False
        ob = data
        if self.layout_type in {'DEFAULT', 'COMPACT'}:
            if item:
                layout.prop(item, "name", text="", emboss=False)
            else:
                layout.label(text="", translate=False)
        elif self.layout_type in {'GRID'}:
            layout.alignment = 'CENTER'
            layout.label(text="", icon_value=icon)
![pasted_file](https://archive.blender.org/developer/F139773/pasted_file) I've created following list and disabled the filtering with 'use_filter_show = False'. I would expect that the plus sign is not visible anymore, but it is. ``` class SCENE_UL_ds_effect_collection(bpy.types.UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_propname): self.use_filter_show = False ob = data if self.layout_type in {'DEFAULT', 'COMPACT'}: if item: layout.prop(item, "name", text="", emboss=False) else: layout.label(text="", translate=False) elif self.layout_type in {'GRID'}: layout.alignment = 'CENTER' layout.label(text="", icon_value=icon) ```
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @hapit

Added subscriber: @hapit

Added subscriber: @mont29

Added subscriber: @mont29
Bastien Montagne self-assigned this 2015-01-29 21:00:05 +01:00

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Thanks for the report, but actually, absolutely no bug here. use_filter_show is a status flag, not a 'behavior-controll' one, it just controls whether 'options' part of UIList are shown or not.

So, setting it to False in draw code just prevents it to ever open, but does not control the possibility to open it or not…

Thanks for the report, but actually, absolutely no bug here. `use_filter_show` is a status flag, not a 'behavior-controll' one, it just controls whether 'options' part of UIList are shown or not. So, setting it to False in draw code just prevents it to ever open, but does not control the possibility to open it or not…

Added subscriber: @jerryno

Added subscriber: @jerryno

I don't agree with the "absolutely no bug here". Its at least a usability and interface bug. If the button is doing nothing, it should be grayed out and non-clickable or removed.

I don't agree with the "absolutely no bug here". Its at least a usability and interface bug. If the button is doing nothing, it should be grayed out and non-clickable or removed.

Changed status from 'Archived' to: 'Open'

Changed status from 'Archived' to: 'Open'

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Please do not reopen tasks yourself, especially when you do not understand it. There is no bug here, things work exactly as expected, and fyi the button is never doing nothing…

Please do not reopen tasks yourself, especially when you do not understand it. There is no bug here, things work exactly as expected, and fyi the button is never doing nothing…
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

@mont29, but we should at least try to give a proper explaination if the author of a report doesn't understand why we close it, right? ;)

I don't agree with the "absolutely no bug here". Its at least a usability and interface bug.

Please note that we don't accept things like usability or interface bugs in our bug tracker. In our definition a bug is something that should work regarding the code, but that is broken in certain scenarios. What you report is considered as a design issue from us. For such things the best place to report this is our bf-interface mailing list (but please wait for a further explanation from @mont29 in this case).

@mont29, but we should at least try to give a proper explaination if the author of a report doesn't understand why we close it, right? ;) >I don't agree with the "absolutely no bug here". Its at least a usability and interface bug. Please note that we don't accept things like usability or interface bugs in our bug tracker. In our definition a bug is something that should work regarding the code, but that is broken in certain scenarios. What you report is considered as a design issue from us. For such things the best place to report this is our [bf-interface ](http://lists.blender.org/mailman/listinfo/bf-interface) mailing list (but please wait for a further explanation from @mont29 in this case).

@JulianEisel already explained more to author (@hapit, not @jerryno, btw) on irc few hours ago… I really do not understand the issue here anyway, this button is exactly like the 'expand/hide' ones of panels e.g., nothing else to explain, really trivial…

@JulianEisel already explained more to author (@hapit, not @jerryno, btw) on irc few hours ago… I really do not understand the issue here anyway, this button is exactly like the 'expand/hide' ones of panels e.g., nothing else to explain, really trivial…
Member

Ah, oki, should be fine then.

@jerryno, do you now understand what Batien means?

Ah, oki, should be fine then. @jerryno, do you now understand what Batien means?
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#43455
No description provided.