Browse Source

print warning when loading legacy canvas group pos file; fix lint

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
babda1dd24
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 4 additions and 2 deletions
  1. +1
    -0
      .travis/script-pylint.sh
  2. +1
    -0
      source/frontend/carla_host.py
  3. +2
    -2
      source/frontend/widgets/racklistwidget.py

+ 1
- 0
.travis/script-pylint.sh View File

@@ -19,6 +19,7 @@ ${pylint} \
--max-line-length=120 \ --max-line-length=120 \
--max-locals=25 \ --max-locals=25 \
--max-statements=100 \ --max-statements=100 \
--enable=bad-continuation \
--disable=\ --disable=\
bad-whitespace,\ bad-whitespace,\
broad-except,\ broad-except,\


+ 1
- 0
source/frontend/carla_host.py View File

@@ -806,6 +806,7 @@ class HostWindow(QMainWindow):
except: except:
return return


print("NOTICE: loading old-style canvas group positions via legacy json file")
patchcanvas.restoreGroupPositions(canvasdata) patchcanvas.restoreGroupPositions(canvasdata)
QTimer.singleShot(1000, self.slot_canvasRefresh) QTimer.singleShot(1000, self.slot_canvasRefresh)




+ 2
- 2
source/frontend/widgets/racklistwidget.py View File

@@ -338,8 +338,8 @@ class RackListWidget(QListWidget):


if not self.host.load_file(filename): if not self.host.load_file(filename):
CustomMessageBox(self, QMessageBox.Critical, self.tr("Error"), CustomMessageBox(self, QMessageBox.Critical, self.tr("Error"),
self.tr("Failed to load file"),
self.host.get_last_error(), QMessageBox.Ok, QMessageBox.Ok)
self.tr("Failed to load file"),
self.host.get_last_error(), QMessageBox.Ok, QMessageBox.Ok)
continue continue


if filename.endswith(".carxp"): if filename.endswith(".carxp"):


Loading…
Cancel
Save