Skip to main content
KlausBusse
Inspiring
February 7, 2026
Answered

[Q] How to display a custom dialog with LrDialogs.presentModalDialog and only *one* close button

  • February 7, 2026
  • 1 reply
  • 12 views

I’m writing a Lightroom Classic plugin with lua, which generally works quite well.

However, I have an issue with a very fundamental thing:

Displaying an error dialog that simply has a single close button.

No matter what  I try, at least on my Mac I always get an OK and Cancel button.

What am I doing wrong?

LrDialogs.presentModalDialog{
title = Global.moduleName,
contents = myContent
}

Thanks
 

Klaus

    Correct answer KlausBusse

    To answer my own question based on the API Reference:

    If the string "< exclude >" (spelled exactly like that, including the spaces) is supplied, the cancel button will not appear.

    1 reply

    KlausBusse
    KlausBusseAuthorCorrect answer
    Inspiring
    February 7, 2026

    To answer my own question based on the API Reference:

    If the string "< exclude >" (spelled exactly like that, including the spaces) is supplied, the cancel button will not appear.