Ensure only one instance is running and publish company info.

This commit is contained in:
2025-03-08 12:23:59 +01:00
parent 35c977c89e
commit f5b32d6621
3 changed files with 40 additions and 4 deletions

View File

@@ -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']
}
}
}