diff --git a/README.md b/README.md index 48cd86f..b89f9d3 100644 --- a/README.md +++ b/README.md @@ -55,8 +55,6 @@ config.ini db/ - ~~delete songs from library (del key || right-click delete)~~ - playlist autoexporting - .wav, .ogg, .flac convertor -- FIXME: table headers being resized and going out window bounds -- FIXME: dbaccess is instantiated for every track being reorganized - automatic "radio" based on artist or genre - search bar, full text search on song, artist, album - when table is focused, start typing to match against the primary sort column diff --git a/components/MusicTable.py b/components/MusicTable.py index 0ca5631..f6f8620 100644 --- a/components/MusicTable.py +++ b/components/MusicTable.py @@ -135,6 +135,8 @@ class MusicTable(QTableView): self.setSelectionMode(QAbstractItemView.ExtendedSelection) self.setSelectionBehavior(QAbstractItemView.SelectRows) # header + # FIXME: table headers being resized and going out window bounds + # causing some recursion errors... self.horizontal_header: QHeaderView = self.horizontalHeader() assert self.horizontal_header is not None # i hate look at linting errors self.horizontal_header.setStretchLastSection(True) @@ -541,6 +543,9 @@ class MusicTable(QTableView): based on self.config['directories'][reorganize_destination'] """ debug("reorganizing files") + # FIXME: batch update, instead of doing 1 file at a time + # DBAccess is being instantiated for every file, boo + # Get target directory target_dir = str(self.config["directories"]["reorganize_destination"]) for filepath in filepaths: