Primitivus now implement showDialog + new "newAlert" bridge method to show a dialog from core
This commit is contained in:
parent
fded7958f4
commit
b3bff009e8
1 changed files with 74 additions and 20 deletions
|
|
@ -109,7 +109,7 @@ class Param():
|
|||
debug("Parameters init")
|
||||
self.host = host
|
||||
self.default_profile = None
|
||||
self.params = {'goffi':{}} #gof:
|
||||
self.params = {}
|
||||
self.params_gen = {}
|
||||
host.set_const('savefile_param_xml', SAVEFILE_PARAM_XML)
|
||||
host.set_const('savefile_param_data', SAVEFILE_PARAM_DATA)
|
||||
|
|
@ -150,7 +150,7 @@ class Param():
|
|||
info(_('No default profile, returning first one')) #TODO: manage real default profile
|
||||
default = self.params.keys()[0]
|
||||
self.host.memory.setPrivate('Profile_default', default)
|
||||
return default #FIXME: gof: temporary, must use real default value, and fallback to first one if it doesn't exists
|
||||
return default #FIXME: temporary, must use real default value, and fallback to first one if it doesn't exists
|
||||
if not self.params.has_key(profile_key):
|
||||
info (_('Trying to access an unknown profile'))
|
||||
return ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue