mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
remove %s constraint from extra args
This commit is contained in:
parent
b5222b5f7d
commit
7f2d778a0e
@ -47,14 +47,6 @@ void EditExtraCore::onStart(std::shared_ptr<NekoGui::ProxyEntity> _ent) {
|
||||
|
||||
bool EditExtraCore::onEnd() {
|
||||
auto bean = ent->ExtraCoreBean();
|
||||
if (!ui->args->text().contains("%s"))
|
||||
{
|
||||
runOnUiThread([=]
|
||||
{
|
||||
MessageBoxWarning("Invalid args", "Args should have a %s as the placeholder for config file path.");
|
||||
});
|
||||
return false;
|
||||
}
|
||||
bean->socksAddress = ui->socks_address->text();
|
||||
bean->socksPort = ui->socks_port->text().toInt();
|
||||
bean->extraCoreConf = ui->config->toPlainText();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user