Are the calls to the 2024 and 2023 html windows significantly different from 2022 and lower?

Attach callbacks to the dialog object (inside a method that can be recalled as needed.)
If the user closes the dialog window the callbacks are detached. If the dialog is reopened (via your extension command) the callbacks must be reattached (using the method as described.)

def my_command
  if @dialog
    if @dialog.visible?
      @dialog.bring_to_front
    else
      attach_callbacks()
      @dialog.show
    end
  else
    create_dialog()
    attach_callbacks()
    @dialog.show
  end
end

Try to determine the exact “certain situations” that this happens if not as I describe. Knowing when it fails will be the biggest step toward getting it fixed. (A reproducible minimum code snippet is even better.)


P.S. - @Rubert There is no Make 2018 edition (ie, your forum profile.)