jsdialog: create also combobox without entries

this fixes missing font name and font size comboboxes
when opened spreadsheet protected from editing

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I364fe345756549270cabafbe76d9a6b040a48ac3
This commit is contained in:
Szymon Kłos 2023-09-11 15:35:13 +02:00 committed by Szymon Kłos
parent 8ab9dd7e07
commit 74059a040e

View file

@ -280,9 +280,6 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
},
_comboboxControl: function(parentContainer, data, builder) {
if (!data.entries || data.entries.length === 0)
return false;
if (window.ThisIsTheiOSApp && data.id === 'fontnamecombobox') {
this._createiOsFontButton(parentContainer, data, builder);
return false;