Skip to content

Commit c1855bc

Browse files
authored
Maintenance/gramps52 (#576)
* Update Betawhatsnext.py Add refreshes for when data is imported or with multiple deletes. Add a bit of padding for symbols * Update Betawhatsnext.gpr.py increase minimum size, increment version, change help_url target
1 parent 18f6c4f commit c1855bc

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

Betawhatsnext/Betawhatsnext.gpr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
maintainers=["Reinhard Mueller", "Jakim Friant", "Brian McCullough"],
5252
maintainers_email=["", "[email protected]" ,"[email protected]"],
5353
fname="Betawhatsnext.py",
54-
height=230,
54+
height=300,
5555
expand=True,
5656
gramplet='BetaWhatNextGramplet',
5757
gramplet_title=_("Beta What's Next?"),
58-
version = '0.1.5',
59-
help_url="https://github.com/emyoulation/_BetaDashboards/blob/5.2/README.md",
58+
version = '0.1.6',
59+
help_url="Gramps_5.2_Wiki_Manual_-_Gramplets#What.27s_Next",
6060
gramps_target_version=MODULE_VERSION,
6161
)

Betawhatsnext/Betawhatsnext.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# (Gramps - the genealogy software suite built on GTK+/GNOME)
55
#
66
# Copyright (C) 2008 Reinhard Mueller
7-
# Copyright (C) 2010 Jakim Friant
8-
# Copyright (C) 2023 Brian McCullough
7+
# Copyright (C) 2010 Jakim Friant
8+
# Copyright (C) 2023 Brian McCullough
99
#
1010
# This program is free software; you can redistribute it and/or modify
1111
# it under the terms of version 2 of the GNU General Public License as
@@ -37,9 +37,9 @@
3737
from gramps.gen.const import GRAMPS_LOCALE as glocale
3838
_ = glocale.translation.sgettext
3939

40-
initial_message = _("\n⛔ A local Genealogical Tree database has not yet been"
40+
initial_message = _(" ⛔ A local Genealogical Tree database has not yet been"
4141
" loaded."
42-
"\n\n👣 Next Steps:"
42+
"\n\n 👣 Next Steps:"
4343
"\n • From the \"Family Trees\" menu,"
4444
" use the \"Manage Family Trees...\" option to"
4545
" create a New (or to select an existing) Tree database."
@@ -174,6 +174,9 @@ def db_changed(self):
174174
self.connect(self.dbstate.db, 'family-add', self.update)
175175
self.connect(self.dbstate.db, 'family-delete', self.update)
176176
self.connect(self.dbstate.db, 'family-update', self.update)
177+
self.connect(self.dbstate.db, 'person-rebuild', self.update)
178+
self.connect(self.dbstate.db, 'event-rebuild', self.update)
179+
self.connect(self.dbstate.db, 'family-rebuild', self.update)
177180

178181
def _no_db(self):
179182
super()._no_db()
@@ -196,8 +199,8 @@ def main(self):
196199
if not people:
197200
# Set padding/margin
198201

199-
self.set_text(_("\n⛔ The current Tree database contains no people."
200-
"\n\n👣 Next Steps:"
202+
self.set_text(_(" ⛔ The current Tree database contains no people."
203+
"\n\n 👣 Next Steps:"
201204
"\nAdd a Family and a person in that family:"
202205
"\n • A Family may be added via the \"Add\" menu"
203206
"\n • A person may be added by pressing the \"+\""
@@ -222,8 +225,8 @@ def main(self):
222225
# complain if no Home Person
223226
default_person = self.dbstate.db.get_default_person()
224227
if default_person is None:
225-
self.set_text(_("\n⛔ No Person has been set as the focal Home Person."
226-
"\n\n👣 Next Steps:"
228+
self.set_text(_(" ⛔ No Person has been set as the focal Home Person."
229+
"\n\n 👣 Next Steps:"
227230
"\nIn the People view,"
228231
" select someone to make them the \"Active Person\", and set"
229232
" them as the focal \"Home Person\" via the Edit menu."))

0 commit comments

Comments
 (0)