Only index the database when a valid uuid is present.
Refresh the database when a PS Vita is connected.
This commit is contained in:
@@ -106,8 +106,13 @@ void ClientManager::start()
|
||||
|
||||
void ClientManager::refreshDatabase()
|
||||
{
|
||||
if(!db.reload()) {
|
||||
emit messageSent(tr("Cannot refresh the database while is in use"));
|
||||
bool prepared;
|
||||
if(!db.reload(prepared)) {
|
||||
if(prepared) {
|
||||
emit messageSent(tr("Cannot refresh the database while is in use"));
|
||||
} else {
|
||||
emit messageSent(tr("No PS Vita system has been registered"));
|
||||
}
|
||||
} else {
|
||||
progress.show();
|
||||
}
|
||||
|
Reference in New Issue
Block a user