Disable dialog in macro using merge cells

I had a macro that was working for a long time, but with a recent update of libreOffice, I had to reset my user profile as merging of cells with content did no longer work.
Now merging agian works my macro is always showing the merge-cells dialog, when before I could suppress it with following code:

dim argsMerge(0) as new com.sun.star.beans.PropertyValue
argsMerge(0).Name = “MoveContents”
argsMerge(0).Value = true
rem argsMerge(1).Name = “ShowDialog”
rem argsMerge(1).Value = false

dispatcher.executeDispatch(document, “.uno:MergeCells”, “”, 0, argsMerge())

This is the snippet of my code excuting the merge, the selection of cells to be merged is done upfront and works fine.

Anyone have any ideas why this stopped working or any suggestions to prevent the dialog to popup ?

There was never a “ShowDialog” argument for .uno:MergeCells UNO command. So that looks like some cargo cult here.

However, there is ShowDialog compatibility option in OptionsAdvancedExpert Configuration, for the MergeCells dialog (it was introduced in 2017). Maybe it was set to false for you before. It may also be set programmatically, for the duration of some call, if needed.