Skip to content

Commit b3d5000

Browse files
committed
View in a new window: show item list panel when multiple objects are displayed
Fix #162
1 parent 0088ae0 commit b3d5000

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ See DataLab [roadmap page](https://datalab-platform.com/en/contributing/roadmap.
1717
* Fixed [Issue #159](https://github.com/DataLab-Platform/DataLab/issues/159) - When selecting multiple images just after opening an HDF5 file, the "View in a new window" feature does not work (`KeyError` exception)
1818
* Fixed [Issue #160](https://github.com/DataLab-Platform/DataLab/issues/160) - When selecting multiple images and clearing ROI in ROI editor, only the first image is affected
1919
* Fixed [Issue #161](https://github.com/DataLab-Platform/DataLab/issues/161) - Refresh image items only if necessary (when editing ROI, pasting/deleting metadata)
20+
* Fixed [Issue #162](https://github.com/DataLab-Platform/DataLab/issues/162) - View in a new window: when displaying multiple images, the item list panel should be visible
2021

2122
## DataLab Version 0.19.0 ##
2223

cdl/core/gui/panel/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,6 @@ def open_separate_view(
11321132
title=obj.title if len(oids) == 1 else None,
11331133
edit=True,
11341134
name=f"{obj.PREFIX}_new_window",
1135-
options={"show_itemlist": edit_annotations},
11361135
)
11371136
if dlg is None:
11381137
return None
@@ -1171,6 +1170,11 @@ def toggle_annotations(enabled: bool):
11711170
plot.add_item(item)
11721171
self.__separate_views[dlg] = obj
11731172
toggle_annotations(edit_annotations)
1173+
if len(oids) > 1:
1174+
# If multiple objects are displayed, show the item list panel
1175+
# (otherwise, it is hidden by default to lighten the dialog, except
1176+
# if `edit_annotations` is True):
1177+
plot.manager.get_itemlist_panel().show()
11741178
if edit_annotations:
11751179
edit_ann_action.setChecked(True)
11761180
dlg.show()

doc/locale/fr/LC_MESSAGES/contributing/changelog.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: DataLab \n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-04-07 19:11+0200\n"
10+
"POT-Creation-Date: 2025-04-08 09:02+0200\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language: fr\n"
@@ -63,6 +63,9 @@ msgstr "Correction de l'[Issue #160](https://github.com/DataLab-Platform/DataLab
6363
msgid "Fixed [Issue #161](https://github.com/DataLab-Platform/DataLab/issues/161) - Refresh image items only if necessary (when editing ROI, pasting/deleting metadata)"
6464
msgstr "Correction de l'[Issue #161](https://github.com/DataLab-Platform/DataLab/issues/161) - Rafraîchir les items d'image uniquement si nécessaire (lors de l'édition de la ROI, du collage/de la suppression de métadonnées)"
6565

66+
msgid "Fixed [Issue #162](https://github.com/DataLab-Platform/DataLab/issues/162) - View in a new window: when displaying multiple images, the item list panel should be visible"
67+
msgstr "Correction de l'[Issue #162](https://github.com/DataLab-Platform/DataLab/issues/162) - Afficher dans une nouvelle fenêtre : lors de l'affichage de plusieurs images, le panneau de liste d'items doit être visible"
68+
6669
msgid "DataLab Version 0.19.0"
6770
msgstr "DataLab Version 0.19.0"
6871

0 commit comments

Comments
 (0)