[GTKUI] Hide the associate magnet button on OSX

This commit is contained in:
Calum Lind 2014-07-04 20:49:16 +01:00
parent d6b44afb99
commit 9987d335a0
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ class Preferences(component.Component):
self.glade.get_widget("image_magnet").set_from_file(
deluge.common.get_pixmap("magnet.png"))
# Hide the unused associate magnet button on OSX see: #2420
if deluge.common.osx_check():
self.glade.get_widget("button_associate_magnet").hide()
# Setup the liststore for the categories (tab pages)
self.liststore = gtk.ListStore(int, str)
self.treeview.set_model(self.liststore)