4442: Add a Button to close the current database; refresh gramplets when no db
This commit is contained in:
parent
efe5323e1a
commit
c3874bdaed
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user