diff --git a/app/config.py b/app/config.py index 0180129..ff1fb54 100644 --- a/app/config.py +++ b/app/config.py @@ -87,6 +87,7 @@ class Config(object): OBS_PORT = 4455 PLAY_SETTLE = 500000 ROOT = os.environ.get('ROOT') or "/home/kae/music" + ROWS_FROM_ZERO = True IMPORT_DESTINATION = os.path.join(ROOT, "Singles") SCROLL_TOP_MARGIN = 3 START_GAP_WARNING_THRESHOLD = 500 diff --git a/app/playlistmodel.py b/app/playlistmodel.py index 352201f..fd653c3 100644 --- a/app/playlistmodel.py +++ b/app/playlistmodel.py @@ -280,7 +280,10 @@ class PlaylistModel(QAbstractTableModel): elif section == Col.NOTE.value: return QVariant(Config.HEADER_NOTE) else: - return QVariant(str(section + 1)) + if Config.ROWS_FROM_ZERO: + return QVariant(str(section)) + else: + return QVariant(str(section + 1)) elif role == Qt.ItemDataRole.FontRole: boldfont = QFont()