mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2026-01-03 17:59:09 +08:00
fix group sort save
This commit is contained in:
parent
affd8c08ef
commit
cb8fcf5579
@ -270,6 +270,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
||||
group->SwapProfiles(row1, row2);
|
||||
refresh_proxy_list(group->profiles[row1]);
|
||||
refresh_proxy_list(group->profiles[row2]);
|
||||
group->Save();
|
||||
};
|
||||
if (auto button = ui->proxyListTable->findChild<QAbstractButton *>(QString(), Qt::FindDirectChildrenOnly)) {
|
||||
// Corner Button
|
||||
@ -296,6 +297,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
||||
return;
|
||||
}
|
||||
refresh_proxy_list_impl(-1, action);
|
||||
Configs::profileManager->CurrentGroup()->Save();
|
||||
});
|
||||
connect(ui->proxyListTable->horizontalHeader(), &QHeaderView::sectionResized, this, [=](int logicalIndex, int oldSize, int newSize) {
|
||||
auto group = Configs::profileManager->CurrentGroup();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user