minor fix

This commit is contained in:
arm64v8a
2023-07-19 11:59:57 +09:00
parent 93a7a60116
commit ceae0e3faa
6 changed files with 29 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ void EditShadowSocks::onStart(std::shared_ptr<NekoGui::ProxyEntity> _ent) {
auto bean = this->ent->ShadowSocksBean();
ui->method->setCurrentText(bean->method);
ui->uot->setCurrentText(Int2String(bean->uot));
ui->uot->setCurrentIndex(bean->uot);
ui->password->setText(bean->password);
auto ssPlugin = bean->plugin.split(";");
if (!ssPlugin.empty()) {
@@ -33,7 +33,7 @@ bool EditShadowSocks::onEnd() {
bean->method = ui->method->currentText();
bean->password = ui->password->text();
bean->uot = ui->uot->currentText().toInt();;
bean->uot = ui->uot->currentIndex();
bean->plugin = ui->plugin->currentText();
if (!bean->plugin.isEmpty()) {
bean->plugin += ";" + ui->plugin_opts->text();