enables meta server to override some mojang urls

Signed-off-by: wohaopa <2411829240@qq.com>
This commit is contained in:
初夏同学
2023-10-28 16:17:14 +08:00
parent b3a09fca1e
commit ab721409ab
11 changed files with 172 additions and 1 deletions

View File

@ -52,6 +52,7 @@
#include "net/PasteUpload.h"
#include "settings/SettingsObject.h"
#include "tools/BaseProfiler.h"
#include "meta/Index.h"
APIPage::APIPage(QWidget* parent) : QWidget(parent), ui(new Ui::APIPage)
{
@ -218,3 +219,9 @@ void APIPage::retranslate()
{
ui->retranslateUi(this);
}
void APIPage::on_applyPropertiesBtn_clicked()
{
APPLICATION->metadataIndex()->property()->applyProperties();
loadSettings();
}

View File

@ -59,6 +59,8 @@ class APIPage : public QWidget, public BasePage {
QString helpPage() const override { return "APIs"; }
virtual bool apply() override;
void retranslate() override;
public slots:
void on_applyPropertiesBtn_clicked();
private:
int baseURLPasteType;

View File

@ -163,6 +163,13 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="applyPropertiesBtn">
<property name="text">
<string>Apply Meta Server Properties</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>