Forum

    • Register
    • Login
    • Search
    • Categories

    Engine.saveUserPreset() no confirm dialog

    General Questions
    3
    12
    181
    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.
    • ustk
      ustk last edited by ustk

      Is there a way to prevent the Confirm Overwrite dialog to show up when using Engine.saveUserPreset("presetName") ?

      I can't help pressing F5 in the forum...

      d.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        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

        ustk 2 Replies Last reply Reply Quote 0
        • ustk
          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...

          I can't help pressing F5 in the forum...

          d.healey 1 Reply Last reply Reply Quote 0
          • d.healey
            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

            ustk 2 Replies Last reply Reply Quote 1
            • ustk
              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...

              I can't help pressing F5 in the forum...

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

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

                I can't help pressing F5 in the forum...

                1 Reply Last reply Reply Quote 0
                • ustk
                  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+H14hC3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KUtVJEVKOk2LVYH68FQawcgpuM1f9yAT3pXSDWLGICEVGegoDN.cIgOft36kUvFCC522ltbYRqg6xIPZ9UL57nd7gzsmx18f9gg.7bHD3vtBNPmYhIH8Ovmkptn1mhadP87+V.acME5YxjiKjs5+YsOrd8u4zipW+EA8hFWXasM9MT9.4vhYoQJKc8OBV5chdQiKXJzVX39ubN01.ZZqZT+HYP4BxmfuHP5FH+O.psvm0qKTSzKArTPJUXPdlBjtbqYfXyBlVtJ9Gf114jRO600gGMHrBrUE3y9RB0Slhm.t+wTU9UWKm6CYQYeR0B77hF497hbucQAo6V3dLo4v74aob3q5kK+Oy2I8T61uOjMkR1x3ie2x9xrEfJWJBjL9fyHROFbKfvVVv6UgRsQIU9IojwiajT0zfxsZjbLMdxlIGBTS1LYRjCwzS7dy3mL.A0OJTBvId3Kgq.OIGFqO4BeXbi5MPNvqTeuooJT74.2yWmuXIz4EKgNubIz4KWBcNXIz4qVBc95GTG0+ffCCjBmniIffdcCu3slVTirvLRz+xuGSdj
                  

                  I can't help pressing F5 in the forum...

                  1 Reply Last reply Reply Quote 0
                  • ustk
                    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

                    I can't help pressing F5 in the forum...

                    ulrik 1 Reply Last reply Reply Quote 2
                    • ulrik
                      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 13, Xcode 14.0.1
                      http://musikboden.se

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

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

                        Hise Develop branch
                        MacOs 13, Xcode 14.0.1
                        http://musikboden.se

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

                          @ulrik And when compiling the binary too

                          I can't help pressing F5 in the forum...

                          ulrik 1 Reply Last reply Reply Quote 0
                          • ulrik
                            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 13, Xcode 14.0.1
                            http://musikboden.se

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

                            6
                            Online

                            1.1k
                            Users

                            7.0k
                            Topics

                            64.6k
                            Posts