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

            Bug ID: 394261
           Summary: API: Loading documents in batchmode still show
                    dialogs.
           Product: krita
           Version: 4.0.3
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Scripting
          Assignee: krita-bugs-n...@kde.org
          Reporter: jhoolm...@gmail.com
  Target Milestone: ---

Created attachment 112657
  --> https://bugs.kde.org/attachment.cgi?id=112657&action=edit
Proposed patch to set documents

Loading certain EXR files still show the alpha modified warning while opening.
It listens to the Documents fileBatchmode, but the api won't let you load a
file through a Document object.

Tested with:

from krita import Krita
kt = Krita.instance()
kt.setBatchmode(True)
doc = kt.openDocument("file_with_low_alphas.exr")
kt.setBatchmode(False)


The supplied patch will set the Documents fileBatchmode to match active Krita
batchmode() before loading, and sets it back to false when done.

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

Reply via email to