Persist generated device serial on Ubuntu Phone
This commit is contained in:
parent
83df1b780b
commit
b27ef6cd31
@ -16,5 +16,8 @@ QString PlatformHelperUBPorts::platform() const
|
||||
QString PlatformHelperUBPorts::deviceSerial() const
|
||||
{
|
||||
QSettings s;
|
||||
return s.value("deviceSerial", QUuid::createUuid()).toString();
|
||||
if (!s.contains("deviceSerial")) {
|
||||
s.setValue("deviceSerial", QUuid::createUuid());
|
||||
}
|
||||
return s.value("deviceSerial").toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user