Ensure only one instance is running and publish company info.
This commit is contained in:
@@ -111,4 +111,17 @@ ColumnLayout
|
||||
{
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
var c = config.getCompanyInfo()
|
||||
if (Object.keys(c).length)
|
||||
{
|
||||
companyName.text = c['NAME']
|
||||
street.text = c['STREET']
|
||||
houseno.text = c['HOUSE']
|
||||
zipcode.editText = c['ZIPCODE']
|
||||
city.editText = c['CITY']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user