.setText(t('files','The file should now open locally. If you don\'t see this happening, make sure that the desktop client is installed on your system.'))
.setButtons([
{
label: t('files','Retry local edit'),
icon: IconCancel,
callback:()=>{
callbackCalled=true
localEditCallback(false)
},
},
{
label: t('files','Edit online'),
icon: IconCheck,
type:'primary',
callback:()=>{
callbackCalled=true
localEditCallback(true)
},
},
])
.build()
.show()
.then(()=>{
// Ensure the callback is called even if the dialog is dismissed in other ways