enables meta server to override some mojang urls
Signed-off-by: wohaopa <2411829240@qq.com>
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user