Browse Source

Immediately open a digital library file after double clicking on it

CURA-8141
Kostas Karmas 3 years ago
parent
commit
1a3474ff09
1 changed files with 5 additions and 0 deletions
  1. 5 0
      plugins/DigitalLibrary/resources/qml/OpenProjectFilesPage.qml

+ 5 - 0
plugins/DigitalLibrary/resources/qml/OpenProjectFilesPage.qml

@@ -65,6 +65,11 @@ Item
             model: manager.digitalFactoryFileModel
             visible: model.count != 0 && manager.retrievingFileStatus != DF.RetrievalStatus.InProgress
             selectionMode: OldControls.SelectionMode.SingleSelection
+            onDoubleClicked:
+            {
+                manager.setSelectedFileIndices([row]);
+                openFilesButton.clicked();
+            }
 
             OldControls.TableViewColumn
             {