[GTKUI] Hide the associate magnet button on OSX
This commit is contained in:
parent
d6b44afb99
commit
9987d335a0
|
@ -66,6 +66,10 @@ class Preferences(component.Component):
|
||||||
self.glade.get_widget("image_magnet").set_from_file(
|
self.glade.get_widget("image_magnet").set_from_file(
|
||||||
deluge.common.get_pixmap("magnet.png"))
|
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)
|
# Setup the liststore for the categories (tab pages)
|
||||||
self.liststore = gtk.ListStore(int, str)
|
self.liststore = gtk.ListStore(int, str)
|
||||||
self.treeview.set_model(self.liststore)
|
self.treeview.set_model(self.liststore)
|
||||||
|
|
Loading…
Reference in New Issue