Remove the beta warning. I was going to add a welcome message, but there is a default welcom gramplet that works just as well.
svn: r10286
This commit is contained in:
@@ -67,8 +67,6 @@ USE_LAST_VIEW = ('preferences', 'use-last-view', 0)
|
|||||||
FAMILY_SIBLINGS = ('preferences', 'family-siblings', 0)
|
FAMILY_SIBLINGS = ('preferences', 'family-siblings', 0)
|
||||||
AUTOLOAD = ('behavior', 'autoload', 0)
|
AUTOLOAD = ('behavior', 'autoload', 0)
|
||||||
SPELLCHECK = ('behavior', 'spellcheck', 0)
|
SPELLCHECK = ('behavior', 'spellcheck', 0)
|
||||||
BETAWARN = ('behavior', 'betawarn', 0)
|
|
||||||
WELCOME = ('behavior', 'welcome', 1)
|
|
||||||
DATE_FORMAT = ('preferences', 'date-format', 1)
|
DATE_FORMAT = ('preferences', 'date-format', 1)
|
||||||
DONT_ASK = ('interface', 'dont-ask', 0)
|
DONT_ASK = ('interface', 'dont-ask', 0)
|
||||||
RELEDITBTN = ('interface', 'releditbtn', 0)
|
RELEDITBTN = ('interface', 'releditbtn', 0)
|
||||||
@@ -188,8 +186,6 @@ default_value = {
|
|||||||
FAMILY_SIBLINGS : True,
|
FAMILY_SIBLINGS : True,
|
||||||
AUTOLOAD : False,
|
AUTOLOAD : False,
|
||||||
SPELLCHECK : False,
|
SPELLCHECK : False,
|
||||||
BETAWARN : False,
|
|
||||||
WELCOME : 100,
|
|
||||||
DATE_FORMAT : 0,
|
DATE_FORMAT : 0,
|
||||||
DONT_ASK : False,
|
DONT_ASK : False,
|
||||||
RELEDITBTN : False,
|
RELEDITBTN : False,
|
||||||
|
@@ -183,37 +183,11 @@ def register_stock_icons ():
|
|||||||
|
|
||||||
factory.add (data[0], icon_set)
|
factory.add (data[0], icon_set)
|
||||||
|
|
||||||
|
|
||||||
def build_user_paths():
|
def build_user_paths():
|
||||||
""" check/make user-dirs on each Gramps session"""
|
""" check/make user-dirs on each Gramps session"""
|
||||||
for path in const.USER_DIRLIST:
|
for path in const.USER_DIRLIST:
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
os.mkdir(path)
|
os.mkdir(path)
|
||||||
|
|
||||||
def _display_welcome_message():
|
|
||||||
"""
|
|
||||||
Display a welcome message to the user.
|
|
||||||
"""
|
|
||||||
if not Config.get(Config.BETAWARN):
|
|
||||||
from QuestionDialog import WarningDialog
|
|
||||||
WarningDialog(
|
|
||||||
_('Danger: This is unstable code!'),
|
|
||||||
_("This GRAMPS 3.0 Beta release is an early, experimental "
|
|
||||||
"peek at the future 3.0 release. This version is "
|
|
||||||
"not meant for normal usage. Use at your own risk.\n\n"
|
|
||||||
"This version may:\n"
|
|
||||||
"1) Work differently than you expect.\n"
|
|
||||||
"2) Fail to run at all.\n"
|
|
||||||
"3) Crash often.\n"
|
|
||||||
"4) Corrupt your data.\n"
|
|
||||||
"5) Save data in a format that is incompatible with the "
|
|
||||||
"official release.\n"
|
|
||||||
"\n<b>BACKUP</b> your existing databases "
|
|
||||||
"before opening them with this version, and make "
|
|
||||||
"sure to export your data to XML every now and then."))
|
|
||||||
Config.set(Config.AUTOLOAD, False)
|
|
||||||
# Config.set(Config.BETAWARN, True)
|
|
||||||
Config.set(Config.BETAWARN, Config.get(Config.BETAWARN))
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@@ -231,8 +205,7 @@ class Gramps:
|
|||||||
def __init__(self, args):
|
def __init__(self, args):
|
||||||
stopload = False
|
stopload = False
|
||||||
try:
|
try:
|
||||||
build_user_paths()
|
build_user_paths()
|
||||||
_display_welcome_message()
|
|
||||||
except OSError, msg:
|
except OSError, msg:
|
||||||
ErrorDialog(_("Configuration error"), str(msg))
|
ErrorDialog(_("Configuration error"), str(msg))
|
||||||
except Errors.GConfSchemaError, val:
|
except Errors.GConfSchemaError, val:
|
||||||
@@ -286,5 +259,3 @@ class Gramps:
|
|||||||
|
|
||||||
if Config.get(Config.USE_TIPS):
|
if Config.get(Config.USE_TIPS):
|
||||||
TipOfDay.TipOfDay(self.vm.uistate)
|
TipOfDay.TipOfDay(self.vm.uistate)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user