diff --git a/src/UI/UIItem.js b/src/UI/UIItem.js index 4562d34c..1d30e268 100644 --- a/src/UI/UIItem.js +++ b/src/UI/UIItem.js @@ -55,7 +55,7 @@ function UIItem(options){ options.is_shortcut = options.is_shortcut ?? 0; options.is_trash = options.is_trash ?? false; options.metadata = options.metadata ?? ''; - options.multiselectable = options.multiselectable ?? true; + options.multiselectable = (options.multiselectable === undefined || options.multiselectable === true) ? true : false; options.shortcut_to = options.shortcut_to ?? ''; options.shortcut_to_path = options.shortcut_to_path ?? ''; options.immutable = (options.immutable === false || options.immutable === 0 || options.immutable === undefined ? 0 : 1); diff --git a/src/UI/UIWindow.js b/src/UI/UIWindow.js index 9061a0bc..3f163a31 100644 --- a/src/UI/UIWindow.js +++ b/src/UI/UIWindow.js @@ -99,7 +99,7 @@ async function UIWindow(options) { options.show_minimize_button = options.show_minimize_button ?? true; options.on_close = options.on_close ?? undefined; options.parent_uuid = options.parent_uuid ?? null; - options.selectable_body = options.selectable_body ?? true; + options.selectable_body = (options.selectable_body === undefined || options.selectable_body === true) ? true : false; options.show_in_taskbar = options.show_in_taskbar ?? true; options.show_maximize_button = options.show_maximize_button ?? true; options.single_instance = options.single_instance ?? false; diff --git a/src/helpers.js b/src/helpers.js index 8e209159..53ad2bb9 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -2678,7 +2678,7 @@ window.get_html_element_from_options = async function(options){ options.is_shortcut = options.is_shortcut ?? 0; options.is_trash = options.is_trash ?? false; options.metadata = options.metadata ?? ''; - options.multiselectable = options.multiselectable ?? true; + options.multiselectable = (!options.multiselectable || options.multiselectable === true) ? true : false; options.shortcut_to = options.shortcut_to ?? ''; options.shortcut_to_path = options.shortcut_to_path ?? ''; options.immutable = (options.immutable === false || options.immutable === 0 || options.immutable === undefined ? 0 : 1);