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

            Bug ID: 462667
           Summary: Saving document with script but krita does not know
    Classification: Applications
           Product: krita
           Version: 5.1.3
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Scripting
          Assignee: krita-bugs-n...@kde.org
          Reporter: keyth2363...@gmail.com
  Target Milestone: ---

SUMMARY
saving with python does not have the same consequences of saving as through the
normal ways to do it.

STEPS TO REPRODUCE
1. open a new krita instance
2. create a new document the traditional way
3. run the code to save document
4. move mouse (document becomes dirty)
5. draw something (now it should dirty)
6. save document normally with "file > save" (krita is not aware of the save
and instead does a "save as" and requests the path were to save)

"""
import os
import krita

# Save Document
path = os.path.normpath("C:\\Users\\EyeOd\\Desktop\\Save Teste\\teste.kra")
Krita.instance().activeDocument().saveAs( path )
"""

OBSERVED RESULT
save is not triggering the expected reaction from the document as it would be
from a normal save command.
information is lost of the save that happened and because of that krita asks
again the same question as you just gave it.

EXPECTED RESULT
after performing the save operation with the script, triggering a normal save
operation would just overwrite the current file on disk and not ask where to
save.

SOFTWARE/OS VERSIONS
Windows: 10
Qt Version: 5.12.12

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

Reply via email to