From 2bc4fd6a10314a468e827252deb1356d633f90b4 Mon Sep 17 00:00:00 2001 From: geigi Date: Fri, 8 Dec 2017 00:43:54 +0100 Subject: [PATCH] Some fixes --- cozy/importer.py | 2 ++ cozy/ui.py | 3 ++- data/ui/main_window.ui | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cozy/importer.py b/cozy/importer.py index dba9a21d..8126e2b8 100644 --- a/cozy/importer.py +++ b/cozy/importer.py @@ -449,6 +449,8 @@ def __get_flac_cover(track): :param track: Track object """ + cover = None + try: cover = track.mutagen.pictures[0].data except Exception as e: diff --git a/cozy/ui.py b/cozy/ui.py index ab958fc8..d2c5007d 100644 --- a/cozy/ui.py +++ b/cozy/ui.py @@ -522,9 +522,10 @@ def check_for_tracks(self): self.no_media_file_chooser.set_current_folder(db.Settings.get().path) self.main_stack.props.visible_child_name = "no_media" self.block_ui_buttons(True) + self.progress_scale.set_visible(False) else: self.main_stack.props.visible_child_name = "main" - self.block_ui_buttons(False) + self.search_button.set_sensitive(True) def set_title_cover(self, pixbuf): """ diff --git a/data/ui/main_window.ui b/data/ui/main_window.ui index 9ff9a013..ed9fbb70 100644 --- a/data/ui/main_window.ui +++ b/data/ui/main_window.ui @@ -562,6 +562,9 @@ True True + center + center + 2 Auto scan switch