https://bugs.kde.org/show_bug.cgi?id=403436

            Bug ID: 403436
           Summary: channel[].visible() always returns False
           Product: krita
           Version: 4.1.7
          Platform: MS Windows
                OS: MS Windows
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: Scripting
          Assignee: krita-bugs-n...@kde.org
          Reporter: kapyia....@gmail.com
  Target Milestone: ---

SUMMARY
Checking for a channel's visibility using the visible() function in Python
always returns False.


STEPS TO REPRODUCE
1. Create a new document in Krita


2. Run the following script in the Scripter tool:

###
from krita import *

doc = Krita.instance().activeDocument()
channel = doc.activeNode().channels()[0]

channel.setVisible(True)
print(channel.visible())
doc.refreshProjection()
###


OBSERVED RESULT
Output is always 'False'. Setting a  channel's visibility works, but the flag
doesn't seem to be updated. Additionally, changing a channel's visibility using
setVisible() isn't reflected in the Channels docker.


EXPECTED RESULT
Output from visible() should reflect the visibility of the channel.


OS
Windows 10

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to