Save the online id to show it in the backup manager.
This commit is contained in:
@@ -51,7 +51,7 @@ void BackupManagerForm::setupForm()
|
|||||||
ui->tableWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
ui->tableWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||||
ui->tableWidget->horizontalHeader()->hide();
|
ui->tableWidget->horizontalHeader()->hide();
|
||||||
// the the account name when vitamtp returns this value
|
// the the account name when vitamtp returns this value
|
||||||
ui->accountBox->addItem(QSettings().value("lastAccountId", tr("Default account")).toString());
|
ui->accountBox->addItem(QSettings().value("lastOnlineId", tr("Default account")).toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
void BackupManagerForm::removeEntry(BackupItem *item)
|
void BackupManagerForm::removeEntry(BackupItem *item)
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Account ID / Username</string>
|
<string>Online ID / Username</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@@ -564,9 +564,10 @@ void CmaEvent::vitaEventGetSettingInfo(vita_event_t *event, int eventId)
|
|||||||
|
|
||||||
qDebug("Current account id: %s", settingsinfo->current_account.accountId);
|
qDebug("Current account id: %s", settingsinfo->current_account.accountId);
|
||||||
|
|
||||||
|
QSettings settings;
|
||||||
if(QSettings().value("lastAccountId").toString() != settingsinfo->current_account.accountId) {
|
if(settings.value("lastAccountId").toString() != settingsinfo->current_account.accountId) {
|
||||||
db->setUUID(settingsinfo->current_account.accountId);
|
db->setUUID(settingsinfo->current_account.accountId);
|
||||||
|
settings.setValue("lastOnlineId", settingsinfo->current_account.userName);
|
||||||
// set the database to be updated ASAP
|
// set the database to be updated ASAP
|
||||||
emit refreshDatabase();
|
emit refreshDatabase();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user