removed unused and confusing argument
This commit is contained in:
parent
df92b0cb92
commit
77e1177604
@ -455,7 +455,7 @@ class MainWindow( object ):
|
|||||||
self.plugins["applications"].changeTab(0)
|
self.plugins["applications"].changeTab(0)
|
||||||
self.plugins["applications"].focusSearchEntry()
|
self.plugins["applications"].focusSearchEntry()
|
||||||
|
|
||||||
def hide( self, forceHide = False ):
|
def hide( self ):
|
||||||
for plugin in self.plugins.values():
|
for plugin in self.plugins.values():
|
||||||
if hasattr( plugin, "onHideMenu" ):
|
if hasattr( plugin, "onHideMenu" ):
|
||||||
plugin.onHideMenu()
|
plugin.onHideMenu()
|
||||||
@ -752,11 +752,11 @@ class MenuWin( object ):
|
|||||||
self.create_menu()
|
self.create_menu()
|
||||||
# allow middle click and drag
|
# allow middle click and drag
|
||||||
elif event.button == 2:
|
elif event.button == 2:
|
||||||
self.mainwin.hide( True )
|
self.mainwin.hide()
|
||||||
|
|
||||||
def toggleMenu( self ):
|
def toggleMenu( self ):
|
||||||
if self.applet.state & Gtk.StateType.SELECTED:
|
if self.applet.state & Gtk.StateType.SELECTED:
|
||||||
self.mainwin.hide( True )
|
self.mainwin.hide()
|
||||||
else:
|
else:
|
||||||
self.positionMenu()
|
self.positionMenu()
|
||||||
self.mainwin.show()
|
self.mainwin.show()
|
||||||
|
Loading…
Reference in New Issue
Block a user