Resolve ambiguity in paste link

This commit is contained in:
Nova 2025-01-04 00:00:20 +03:30
parent 7cfa0ee377
commit 386ea7e64c
No known key found for this signature in database
GPG Key ID: 389787EC83F5D73A

View File

@ -569,9 +569,8 @@ namespace NekoGui_sub {
if (_sub_gid < 0 && (content.startsWith("http://") || content.startsWith("https://"))) {
auto items = QStringList{
QObject::tr("As Subscription (add to this group)"),
QObject::tr("As Subscription (create new group)"),
QObject::tr("As link"),
QObject::tr("Add profiles to this group"),
QObject::tr("Create new subscription group"),
};
bool ok;
auto a = QInputDialog::getItem(nullptr,
@ -579,7 +578,7 @@ namespace NekoGui_sub {
QObject::tr("%1\nHow to update?").arg(content),
items, 0, false, &ok);
if (!ok) return;
if (items.indexOf(a) <= 1) asURL = true;
asURL = true;
if (items.indexOf(a) == 1) createNewGroup = true;
}