I thing what may be going on is when the window is being destroyed:
def close_window(self, *args):
self.save_window_position()
self.window.destroy()
self.window = None
self.show_in_tray()
def on_delete_window(self, event, data):
self.save_window_position()
self.window.destroy()
self.window = None
self.show_in_tray()
The app object is not destroyed. So then on re-entrancy:
@dbus.service.method("org.gnome.Hamster.WindowServer")
def main(self):
if self.app:
self.app.window.show()
self.app.window.present()
else:
self.app = ProjectHamster()
since there is an application object, it assumes there is a window
object. I suspect the right fix is to test if the self.app.window is not
None, and recreate the window if necessary. It may also be simply to
hide self.window instead of destroy it.
** Changed in: hamster-applet (Ubuntu)
Importance: Undecided => Low
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/918487
Title:
can't reopen hamster applet after closing it: 'NoneType' object has
no attribute 'show' in main
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hamster-applet/+bug/918487/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs