4442: Add a Button to close the current database; refresh gramplets when no db

This commit is contained in:
Doug Blank 2016-05-03 20:31:20 -04:00
parent efe5323e1a
commit c3874bdaed

View File

@ -290,9 +290,7 @@ class Gramplet(object):
The main interface for running the :meth:`main` method. The main interface for running the :meth:`main` method.
""" """
from gi.repository import GObject, GLib from gi.repository import GObject, GLib
if ((not self.active or if ((not self.active) and
self.gui.gstate in ["closed", "minimized"] or
not self.dbstate.open) and
not self.gui.force_update): not self.gui.force_update):
self.dirty = True self.dirty = True
if self.dbstate.open: if self.dbstate.open: