diff --git a/qtgui/designer/chooseDownloadDirectory.py b/qtgui/designer/chooseDownloadDirectory.py index a5ec95b..e5c5fb3 100644 --- a/qtgui/designer/chooseDownloadDirectory.py +++ b/qtgui/designer/chooseDownloadDirectory.py @@ -67,5 +67,5 @@ class Ui_ChooseDownloadDirectory(object): def retranslateUi(self, ChooseDownloadDirectory): _translate = QtCore.QCoreApplication.translate ChooseDownloadDirectory.setWindowTitle(_translate("ChooseDownloadDirectory", "Choose Session Directory")) - self.label.setText(_translate("ChooseDownloadDirectory", "

Please choose a directory for your sample files. The location can be read-only and will be shared by all sessions.

At the moment you have to manually download the files and move them to this directory. An integrated downloader will be added to this program after its beta-phase.

Changing the directory requires a program restart. The sample libraries will only be scanned on program start as well.

The download URL is:

https://www.laborejo.org/tembro/instruments

")) + self.label.setText(_translate("ChooseDownloadDirectory", "

Please choose a directory for your sample files. The location can be read-only and will be shared by all sessions.

At the moment you have to manually download the files and move them to this directory. An integrated downloader will be added to this program after its beta-phase.

Changing the directory requires a program restart. The sample libraries will only be scanned on program start as well.

The download URL is:

https://laborejo.org/downloads/tembro-instruments/

")) self.openFileDialogButton.setText(_translate("ChooseDownloadDirectory", "Choose Directory")) diff --git a/qtgui/designer/chooseDownloadDirectory.ui b/qtgui/designer/chooseDownloadDirectory.ui index f329f3e..08d642a 100644 --- a/qtgui/designer/chooseDownloadDirectory.ui +++ b/qtgui/designer/chooseDownloadDirectory.ui @@ -23,7 +23,7 @@ - <html><head/><body><p>Please choose a directory for your sample files. The location can be read-only and will be shared by all sessions. </p><p>At the moment you have to manually download the files and move them to this directory. An integrated downloader will be added to this program after its beta-phase. </p><p>Changing the directory requires a program restart. The sample libraries will only be scanned on program start as well.</p><p>The download URL is:</p><p align="center"><a href="https://www.laborejo.org/tembro/instruments"><span style=" text-decoration: underline; color:#55ffff;">https://www.laborejo.org/tembro/instruments</span></a></p></body></html> + <html><head/><body><p>Please choose a directory for your sample files. The location can be read-only and will be shared by all sessions. </p><p>At the moment you have to manually download the files and move them to this directory. An integrated downloader will be added to this program after its beta-phase. </p><p>Changing the directory requires a program restart. The sample libraries will only be scanned on program start as well.</p><p>The download URL is:</p><p align="center"><a href="https://laborejo.org/downloads/tembro-instruments/"><span style=" text-decoration: underline; color:#00ffff;">https://laborejo.org/downloads/tembro-instruments/</span></a></p></body></html> true diff --git a/qtgui/instrument.py b/qtgui/instrument.py index 95893e2..e6893eb 100644 --- a/qtgui/instrument.py +++ b/qtgui/instrument.py @@ -503,7 +503,7 @@ class GuiInstrument(QtWidgets.QTreeWidgetItem): self.setText(index, instIdZFilled) else: #full id #self.setText(index, f"{libId}-{str(instrId).zfill(zeros)}") - self.setData(index, 0, float(libId + "." + instIdZFilled)) #0 is the data role, just stnadard display text. We combine both IDs to a float number for sorting. If used with setData instead of setText Qt will know how to sort 11 before 1000 + self.setData(index, 0, float(str(libId) + "." + instIdZFilled)) #0 is the data role, just standard display text. We combine both IDs to a float number for sorting. If used with setData instead of setText Qt will know how to sort 11 before 1000