Jump to content
Ultimaker Community of 3D Printing Experts

Machine Action Question, closing window


Recommended Posts

Posted · Machine Action Question, closing window

I have a plugin that adds two machine actions for a specific machine in Cura. I've been able to figure out most things from existing models/trial and error but I've gotten stumped by one issue.

Within the action window, the user can click a button to do some http requests with a networked printer. What I would like to happen is the user clicks a button, a confirmation dialog appears, and then if the user clicks "Yes", then the confirmation dialog AND the machine action window will close. Closing the confirmation dialog is simple, I just call .close(), but this doesn't work for the MachineAction. I get this error: 

TypeError: Property 'close' of object NautilusUpdate_QMLTYPE_401(0x600007652470) is not a function

What can I call to close the window?

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    • Our picks

      • Ultimaker showcase | April 2022 | 4pm CEST | 10am EDT
        I'm excited because I've personally produced this showcase event, so if you are curious what else I'm up to nowadays, come check it out and say hi in the chat! It would mean a lot! 
          • Thanks
          • Like
        • 4 replies
      • New here? Get ahead with a free onboarding course
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 12 replies
    • Create New...