HISE Logo Forum
    • Categories
    • Register
    • Login

    Engine.saveUserPreset() no confirm dialog

    Scheduled Pinned Locked Moved General Questions
    16 Posts 5 Posters 508 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey @ustk
      last edited by

      @ustk Why don't you want confirmation?

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      ustkU 2 Replies Last reply Reply Quote 0
      • ustkU
        ustk @d.healey
        last edited by

        @d-healey I got a special use case where moving some parameters should instantly save a preset in the background, so this has to be transparent...

        Can't help pressing F5 in the forum...

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @ustk
          last edited by

          @ustk I think it makes sense to remove the confirmation altogether from the source then if people want a confirmation they can add it themselves with Engine.showYesNoWindow()

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          ustkU 2 Replies Last reply Reply Quote 1
          • ustkU
            ustk @d.healey
            last edited by

            @d-healey maybe Content.storeAllControlsAsPreset could be a solution but I never used it and don't know what the ValueTree automationData parameter is...

            Can't help pressing F5 in the forum...

            1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @d.healey
              last edited by

              @d-healey Yeah probably, this preset thingy is giving me headache for the whole day...

              Can't help pressing F5 in the forum...

              1 Reply Last reply Reply Quote 0
              • ustkU
                ustk
                last edited by

                So with a workaround storeAllControlsAsPreset is the solution.
                But it works only once. The second time you try to store, the file isn't overwritten.
                It's ok if I delete the file prior to saving, but it's not very classy...

                HiseSnippet 1314.3ocsX88SiaDDdcHKWS3fCnmTenuXwSAUZHo2UZqN0dgDBsTNfHLG5d65h8ljUwdWW60ThpPpuz+Oaetuz+CZm0+H14hC3D0ZIPryty27MyN6L6ROOgI02W3gzpb0XWJR6oXiwb4vNCILN5jiPZafOi3Kod5QhZO1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bYRqg6xIPZ9UL57nd7gzsmx18f9gg.7bHD3vtBNPmYhIH8Ovmkptn1mhadP87+V.acME5YxjiKjs5+YsOrd8u4zipW+EA8hFWXasM9MT9.4vhYoQJKc8OBV5chdQiKXJzVX39ubN01.ZZqZT+HYP4BxmfuHP5FH+O.psvm0qKTSzKArTPJUXPdlBjtbqYfXyBlVtJ9Gf114jRO600gGMHrBrUE3y9RB0Slhm.t+wTU9UWKm6CYQYeR0B77hF497hbucQAo6V3dLo4v74aob3q5kK+Oy2I8T61uOjMkR1x3ie2x9xrEfJWJBjL9fyHROFbKfvVVv6UgRsQIU9IojwiajT0zfxsZjbLMdxlIGBTS1LYRjCwzS7dy3mL.A0OJTBvId3Kgq.OIGFqO4BeXbi5MPNvqTeuooJT74.2yWmuXIz4EKgNubIz4KWBcNXIz4qVBc95GTG0+ffCCjBmniIffdcCu3slVTirvLRz+xuGSdj
                

                Can't help pressing F5 in the forum...

                1 Reply Last reply Reply Quote 0
                • ustkU
                  ustk @d.healey
                  last edited by ustk

                  @Christoph-Hart @d-healey said in Engine.saveUserPreset() no confirm dialog:

                  @ustk I think it makes sense to remove the confirmation altogether…

                  In fact I just added an option to hi_core -> CONFIRM_PRESET_OVERWRITE, and took the opportunity to fix some info bubble not showing in the jucer
                  https://github.com/christophhart/HISE/pull/239/commits/1f164d79127d6273a01d5e1e0d995c2897c59d5c

                  Can't help pressing F5 in the forum...

                  ulrikU 1 Reply Last reply Reply Quote 2
                  • ulrikU
                    ulrik @ustk
                    last edited by

                    @ustk Do I need to change this option when compiling Hise or can I set it in Hise Preferences?

                    Hise Develop branch
                    MacOs 15.3.1, Xcode 16.2
                    http://musikboden.se

                    ulrikU 1 Reply Last reply Reply Quote 0
                    • ulrikU
                      ulrik @ulrik
                      last edited by

                      @ulrik Never mind, the answer was to change it when compiling Hise.

                      Hise Develop branch
                      MacOs 15.3.1, Xcode 16.2
                      http://musikboden.se

                      ustkU 1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @ulrik
                        last edited by

                        @ulrik And when compiling the binary too

                        Can't help pressing F5 in the forum...

                        ulrikU CyberGenC 2 Replies Last reply Reply Quote 0
                        • ulrikU
                          ulrik @ustk
                          last edited by

                          @ustk you mean when compiling the plugin? I didn't add any extra definitions inside Hise, and it worked, or am I misunderstanding?

                          Hise Develop branch
                          MacOs 15.3.1, Xcode 16.2
                          http://musikboden.se

                          1 Reply Last reply Reply Quote 0
                          • CyberGenC
                            CyberGen @ustk
                            last edited by

                            @ustk Sorry for reviving this ancient topic.

                            I removed the confirmation message successfully in HISE, but it still shows up in the compiled binary.

                            How do I remove it for the compiled version?

                            I export directly from HISE.

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              aaronventure @CyberGen
                              last edited by

                              @CyberGen You probably need to add the same preprocessor to your project settings.

                              CyberGenC 2 Replies Last reply Reply Quote 1
                              • CyberGenC
                                CyberGen @aaronventure
                                last edited by

                                @aaronventure tried it on the extra definitions tab but:
                                "invalid token at start of a preprocessor expression"
                                Compilation Failed.

                                1 Reply Last reply Reply Quote 0
                                • CyberGenC
                                  CyberGen @aaronventure
                                  last edited by

                                  @aaronventure Oh, I see now.

                                  "CONFIRM_PRESET_OVERWRITE=0" no semicolon at the end.
                                  :beaming_face_with_smiling_eyes:

                                  It works now.
                                  Thank You.

                                  1 Reply Last reply Reply Quote 2
                                  • First post
                                    Last post

                                  48

                                  Online

                                  1.7k

                                  Users

                                  11.7k

                                  Topics

                                  101.8k

                                  Posts