Fixed to load the stickers only one time

This commit is contained in:
defnax 2021-01-21 22:57:27 +01:00
parent 55d8ff7b6d
commit c746af23ed
3 changed files with 5 additions and 3 deletions

View file

@ -67,7 +67,7 @@ AvatarDialog::AvatarDialog(QWidget *parent) :
connect(ui->buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
updateInterface();
loadFolders();
loadAvatarWidget();
}
@ -144,7 +144,7 @@ void AvatarDialog::getAvatar(QByteArray &avatar)
pixmap->save(&buffer, "PNG"); // writes image into ba in PNG format
}
void AvatarDialog::loadFolders()
void AvatarDialog::load()
{
filters << "*.png" << "*.jpg" << "*.gif";
stickerFolders << (QString::fromStdString(RsAccounts::AccountDirectory()) + "/stickers"); //under account, unique for user