[gui] Collapse per-channel absolute paths

pull/357/head
nyanpasu64 2018-12-14 18:36:50 -08:00
rodzic 3739ec03fb
commit 4ecd27cf5b
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -553,8 +553,10 @@ class ChannelModel(qc.QAbstractTableModel):
if value == data.default:
return ''
else:
return str(value)
if key == 'wav_path' and role == Qt.DisplayRole:
if Path(value).parent != Path():
return '...' + Path(value).name
return str(value)
return nope