mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
fix profile manager
This commit is contained in:
@@ -44,7 +44,7 @@ DialogEditGroup::DialogEditGroup(const std::shared_ptr<NekoGui::Group> &ent, QWi
|
||||
|
||||
connect(ui->copy_links, &QPushButton::clicked, this, [=] {
|
||||
QStringList links;
|
||||
for (const auto &profile: NekoGui::profileManager->profiles) {
|
||||
for (const auto &[_, profile]: NekoGui::profileManager->profiles) {
|
||||
if (profile->gid != ent->id) continue;
|
||||
links += profile->bean->ToShareLink();
|
||||
}
|
||||
@@ -53,7 +53,7 @@ DialogEditGroup::DialogEditGroup(const std::shared_ptr<NekoGui::Group> &ent, QWi
|
||||
});
|
||||
connect(ui->copy_links_nkr, &QPushButton::clicked, this, [=] {
|
||||
QStringList links;
|
||||
for (const auto &profile: NekoGui::profileManager->profiles) {
|
||||
for (const auto &[_, profile]: NekoGui::profileManager->profiles) {
|
||||
if (profile->gid != ent->id) continue;
|
||||
links += profile->bean->ToNekorayShareLink(profile->type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user