Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
geigi committed Dec 7, 2017
1 parent 15e5626 commit 2bc4fd6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cozy/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion cozy/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
3 changes: 3 additions & 0 deletions data/ui/main_window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@
<object class="GtkSwitch" id="auto_scan_switch">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="margin_right">2</property>
<child internal-child="accessible">
<object class="AtkObject" id="auto_scan_switch-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Auto scan switch</property>
Expand Down

0 comments on commit 2bc4fd6

Please sign in to comment.