Revert "NOISSUE Import page is now a MultiMC pack page"
This reverts commit f74e3db804
.
This commit is contained in:
parent
48b2f95129
commit
739a86f171
@ -119,8 +119,8 @@ SET(MULTIMC_SOURCES
|
|||||||
pages/global/LanguagePage.h
|
pages/global/LanguagePage.h
|
||||||
pages/global/MinecraftPage.cpp
|
pages/global/MinecraftPage.cpp
|
||||||
pages/global/MinecraftPage.h
|
pages/global/MinecraftPage.h
|
||||||
pages/global/MultiMCSettingsPage.cpp
|
pages/global/MultiMCPage.cpp
|
||||||
pages/global/MultiMCSettingsPage.h
|
pages/global/MultiMCPage.h
|
||||||
pages/global/ProxyPage.cpp
|
pages/global/ProxyPage.cpp
|
||||||
pages/global/ProxyPage.h
|
pages/global/ProxyPage.h
|
||||||
pages/global/PasteEEPage.cpp
|
pages/global/PasteEEPage.cpp
|
||||||
@ -139,8 +139,8 @@ SET(MULTIMC_SOURCES
|
|||||||
pages/modplatform/TwitchPage.h
|
pages/modplatform/TwitchPage.h
|
||||||
pages/modplatform/TechnicPage.cpp
|
pages/modplatform/TechnicPage.cpp
|
||||||
pages/modplatform/TechnicPage.h
|
pages/modplatform/TechnicPage.h
|
||||||
pages/modplatform/MultiMCPage.cpp
|
pages/modplatform/ImportPage.cpp
|
||||||
pages/modplatform/MultiMCPage.h
|
pages/modplatform/ImportPage.h
|
||||||
|
|
||||||
# GUI - dialogs
|
# GUI - dialogs
|
||||||
dialogs/AboutDialog.cpp
|
dialogs/AboutDialog.cpp
|
||||||
@ -245,7 +245,7 @@ SET(MULTIMC_UIS
|
|||||||
pages/global/ExternalToolsPage.ui
|
pages/global/ExternalToolsPage.ui
|
||||||
pages/global/JavaPage.ui
|
pages/global/JavaPage.ui
|
||||||
pages/global/MinecraftPage.ui
|
pages/global/MinecraftPage.ui
|
||||||
pages/global/MultiMCSettingsPage.ui
|
pages/global/MultiMCPage.ui
|
||||||
pages/global/ProxyPage.ui
|
pages/global/ProxyPage.ui
|
||||||
pages/global/PasteEEPage.ui
|
pages/global/PasteEEPage.ui
|
||||||
pages/global/PackagesPage.ui
|
pages/global/PackagesPage.ui
|
||||||
@ -255,7 +255,7 @@ SET(MULTIMC_UIS
|
|||||||
pages/modplatform/FTBPage.ui
|
pages/modplatform/FTBPage.ui
|
||||||
pages/modplatform/TwitchPage.ui
|
pages/modplatform/TwitchPage.ui
|
||||||
pages/modplatform/TechnicPage.ui
|
pages/modplatform/TechnicPage.ui
|
||||||
pages/modplatform/MultiMCPage.ui
|
pages/modplatform/ImportPage.ui
|
||||||
|
|
||||||
# Dialogs
|
# Dialogs
|
||||||
dialogs/CopyInstanceDialog.ui
|
dialogs/CopyInstanceDialog.ui
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "MainWindow.h"
|
#include "MainWindow.h"
|
||||||
#include "InstanceWindow.h"
|
#include "InstanceWindow.h"
|
||||||
#include "pages/BasePageProvider.h"
|
#include "pages/BasePageProvider.h"
|
||||||
#include "pages/global/MultiMCSettingsPage.h"
|
#include "pages/global/MultiMCPage.h"
|
||||||
#include "pages/global/MinecraftPage.h"
|
#include "pages/global/MinecraftPage.h"
|
||||||
#include "pages/global/JavaPage.h"
|
#include "pages/global/JavaPage.h"
|
||||||
#include "pages/global/LanguagePage.h"
|
#include "pages/global/LanguagePage.h"
|
||||||
@ -517,7 +517,7 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
|
|||||||
// Init page provider
|
// Init page provider
|
||||||
{
|
{
|
||||||
m_globalSettingsProvider = std::make_shared<GenericPageProvider>(tr("Settings"));
|
m_globalSettingsProvider = std::make_shared<GenericPageProvider>(tr("Settings"));
|
||||||
m_globalSettingsProvider->addPage<MultiMCSettingsPage>();
|
m_globalSettingsProvider->addPage<MultiMCPage>();
|
||||||
m_globalSettingsProvider->addPage<MinecraftPage>();
|
m_globalSettingsProvider->addPage<MinecraftPage>();
|
||||||
m_globalSettingsProvider->addPage<JavaPage>();
|
m_globalSettingsProvider->addPage<JavaPage>();
|
||||||
m_globalSettingsProvider->addPage<LanguagePage>();
|
m_globalSettingsProvider->addPage<LanguagePage>();
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
#include <pages/modplatform/VanillaPage.h>
|
#include <pages/modplatform/VanillaPage.h>
|
||||||
#include <pages/modplatform/FTBPage.h>
|
#include <pages/modplatform/FTBPage.h>
|
||||||
#include <pages/modplatform/TwitchPage.h>
|
#include <pages/modplatform/TwitchPage.h>
|
||||||
#include <pages/modplatform/MultiMCPage.h>
|
#include <pages/modplatform/ImportPage.h>
|
||||||
#include <pages/modplatform/TechnicPage.h>
|
#include <pages/modplatform/TechnicPage.h>
|
||||||
|
|
||||||
NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, const QString & url, QWidget *parent)
|
NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, const QString & url, QWidget *parent)
|
||||||
@ -118,13 +118,13 @@ void NewInstanceDialog::accept()
|
|||||||
|
|
||||||
QList<BasePage *> NewInstanceDialog::getPages()
|
QList<BasePage *> NewInstanceDialog::getPages()
|
||||||
{
|
{
|
||||||
importPage = new MultiMCPage(this);
|
importPage = new ImportPage(this);
|
||||||
return
|
return
|
||||||
{
|
{
|
||||||
new VanillaPage(this),
|
new VanillaPage(this),
|
||||||
|
new FTBPage(this),
|
||||||
importPage,
|
importPage,
|
||||||
new TwitchPage(this),
|
new TwitchPage(this),
|
||||||
new FTBPage(this),
|
|
||||||
new TechnicPage(this)
|
new TechnicPage(this)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ class NewInstanceDialog;
|
|||||||
|
|
||||||
class PageContainer;
|
class PageContainer;
|
||||||
class QDialogButtonBox;
|
class QDialogButtonBox;
|
||||||
class MultiMCPage;
|
class ImportPage;
|
||||||
|
|
||||||
class NewInstanceDialog : public QDialog, public BasePageProvider
|
class NewInstanceDialog : public QDialog, public BasePageProvider
|
||||||
{
|
{
|
||||||
@ -66,7 +66,7 @@ private:
|
|||||||
QDialogButtonBox * m_buttons = nullptr;
|
QDialogButtonBox * m_buttons = nullptr;
|
||||||
|
|
||||||
QString InstIconKey;
|
QString InstIconKey;
|
||||||
MultiMCPage *importPage = nullptr;
|
ImportPage *importPage = nullptr;
|
||||||
std::unique_ptr<InstanceTask> creationTask;
|
std::unique_ptr<InstanceTask> creationTask;
|
||||||
|
|
||||||
bool importIcon = false;
|
bool importIcon = false;
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "MultiMCSettingsPage.h"
|
#include "MultiMCPage.h"
|
||||||
#include "ui_MultiMCSettingsPage.h"
|
#include "ui_MultiMCPage.h"
|
||||||
|
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
@ -38,7 +38,7 @@ enum InstSortMode
|
|||||||
Sort_LastLaunch
|
Sort_LastLaunch
|
||||||
};
|
};
|
||||||
|
|
||||||
MultiMCSettingsPage::MultiMCSettingsPage(QWidget *parent) : QWidget(parent), ui(new Ui::MultiMCSettingsPage)
|
MultiMCPage::MultiMCPage(QWidget *parent) : QWidget(parent), ui(new Ui::MultiMCPage)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
auto origForeground = ui->fontPreview->palette().color(ui->fontPreview->foregroundRole());
|
auto origForeground = ui->fontPreview->palette().color(ui->fontPreview->foregroundRole());
|
||||||
@ -56,7 +56,7 @@ MultiMCSettingsPage::MultiMCSettingsPage(QWidget *parent) : QWidget(parent), ui(
|
|||||||
if(BuildConfig.UPDATER_ENABLED)
|
if(BuildConfig.UPDATER_ENABLED)
|
||||||
{
|
{
|
||||||
QObject::connect(MMC->updateChecker().get(), &UpdateChecker::channelListLoaded, this,
|
QObject::connect(MMC->updateChecker().get(), &UpdateChecker::channelListLoaded, this,
|
||||||
&MultiMCSettingsPage::refreshUpdateChannelList);
|
&MultiMCPage::refreshUpdateChannelList);
|
||||||
|
|
||||||
if (MMC->updateChecker()->hasChannels())
|
if (MMC->updateChecker()->hasChannels())
|
||||||
{
|
{
|
||||||
@ -81,18 +81,18 @@ MultiMCSettingsPage::MultiMCSettingsPage(QWidget *parent) : QWidget(parent), ui(
|
|||||||
connect(ui->languageBox, SIGNAL(currentIndexChanged(int)), SLOT(languageIndexChanged(int)));
|
connect(ui->languageBox, SIGNAL(currentIndexChanged(int)), SLOT(languageIndexChanged(int)));
|
||||||
}
|
}
|
||||||
|
|
||||||
MultiMCSettingsPage::~MultiMCSettingsPage()
|
MultiMCPage::~MultiMCPage()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MultiMCSettingsPage::apply()
|
bool MultiMCPage::apply()
|
||||||
{
|
{
|
||||||
applySettings();
|
applySettings();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCSettingsPage::on_instDirBrowseBtn_clicked()
|
void MultiMCPage::on_instDirBrowseBtn_clicked()
|
||||||
{
|
{
|
||||||
QString raw_dir = QFileDialog::getExistingDirectory(this, tr("Instance Folder"), ui->instDirTextBox->text());
|
QString raw_dir = QFileDialog::getExistingDirectory(this, tr("Instance Folder"), ui->instDirTextBox->text());
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ void MultiMCSettingsPage::on_instDirBrowseBtn_clicked()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCSettingsPage::on_iconsDirBrowseBtn_clicked()
|
void MultiMCPage::on_iconsDirBrowseBtn_clicked()
|
||||||
{
|
{
|
||||||
QString raw_dir = QFileDialog::getExistingDirectory(this, tr("Icons Folder"), ui->iconsDirTextBox->text());
|
QString raw_dir = QFileDialog::getExistingDirectory(this, tr("Icons Folder"), ui->iconsDirTextBox->text());
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ void MultiMCSettingsPage::on_iconsDirBrowseBtn_clicked()
|
|||||||
ui->iconsDirTextBox->setText(cooked_dir);
|
ui->iconsDirTextBox->setText(cooked_dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void MultiMCSettingsPage::on_modsDirBrowseBtn_clicked()
|
void MultiMCPage::on_modsDirBrowseBtn_clicked()
|
||||||
{
|
{
|
||||||
QString raw_dir = QFileDialog::getExistingDirectory(this, tr("Mods Folder"), ui->modsDirTextBox->text());
|
QString raw_dir = QFileDialog::getExistingDirectory(this, tr("Mods Folder"), ui->modsDirTextBox->text());
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ void MultiMCSettingsPage::on_modsDirBrowseBtn_clicked()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCSettingsPage::languageIndexChanged(int index)
|
void MultiMCPage::languageIndexChanged(int index)
|
||||||
{
|
{
|
||||||
auto languageCode = ui->languageBox->itemData(ui->languageBox->currentIndex()).toString();
|
auto languageCode = ui->languageBox->itemData(ui->languageBox->currentIndex()).toString();
|
||||||
if(languageCode.isEmpty())
|
if(languageCode.isEmpty())
|
||||||
@ -160,7 +160,7 @@ void MultiMCSettingsPage::languageIndexChanged(int index)
|
|||||||
translations->updateLanguage(languageCode);
|
translations->updateLanguage(languageCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCSettingsPage::refreshUpdateChannelList()
|
void MultiMCPage::refreshUpdateChannelList()
|
||||||
{
|
{
|
||||||
// Stop listening for selection changes. It's going to change a lot while we update it and
|
// Stop listening for selection changes. It's going to change a lot while we update it and
|
||||||
// we don't need to update the
|
// we don't need to update the
|
||||||
@ -205,12 +205,12 @@ void MultiMCSettingsPage::refreshUpdateChannelList()
|
|||||||
ui->updateChannelComboBox->setEnabled(true);
|
ui->updateChannelComboBox->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCSettingsPage::updateChannelSelectionChanged(int index)
|
void MultiMCPage::updateChannelSelectionChanged(int index)
|
||||||
{
|
{
|
||||||
refreshUpdateChannelDesc();
|
refreshUpdateChannelDesc();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCSettingsPage::refreshUpdateChannelDesc()
|
void MultiMCPage::refreshUpdateChannelDesc()
|
||||||
{
|
{
|
||||||
// Get the channel list.
|
// Get the channel list.
|
||||||
QList<UpdateChecker::ChannelListEntry> channelList = MMC->updateChecker()->getChannelList();
|
QList<UpdateChecker::ChannelListEntry> channelList = MMC->updateChecker()->getChannelList();
|
||||||
@ -232,7 +232,7 @@ void MultiMCSettingsPage::refreshUpdateChannelDesc()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCSettingsPage::applySettings()
|
void MultiMCPage::applySettings()
|
||||||
{
|
{
|
||||||
auto s = MMC->settings();
|
auto s = MMC->settings();
|
||||||
|
|
||||||
@ -329,7 +329,7 @@ void MultiMCSettingsPage::applySettings()
|
|||||||
s->set("Analytics", ui->analyticsCheck->isChecked());
|
s->set("Analytics", ui->analyticsCheck->isChecked());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void MultiMCSettingsPage::loadSettings()
|
void MultiMCPage::loadSettings()
|
||||||
{
|
{
|
||||||
auto s = MMC->settings();
|
auto s = MMC->settings();
|
||||||
// Language
|
// Language
|
||||||
@ -437,7 +437,7 @@ void MultiMCSettingsPage::loadSettings()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCSettingsPage::refreshFontPreview()
|
void MultiMCPage::refreshFontPreview()
|
||||||
{
|
{
|
||||||
int fontSize = ui->fontSizeBox->value();
|
int fontSize = ui->fontSizeBox->value();
|
||||||
QString fontFamily = ui->consoleFont->currentFont().family();
|
QString fontFamily = ui->consoleFont->currentFont().family();
|
@ -29,16 +29,16 @@ class SettingsObject;
|
|||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
{
|
{
|
||||||
class MultiMCSettingsPage;
|
class MultiMCPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
class MultiMCSettingsPage : public QWidget, public BasePage
|
class MultiMCPage : public QWidget, public BasePage
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MultiMCSettingsPage(QWidget *parent = 0);
|
explicit MultiMCPage(QWidget *parent = 0);
|
||||||
~MultiMCSettingsPage();
|
~MultiMCPage();
|
||||||
|
|
||||||
QString displayName() const override
|
QString displayName() const override
|
||||||
{
|
{
|
||||||
@ -88,7 +88,7 @@ slots:
|
|||||||
void updateChannelSelectionChanged(int index);
|
void updateChannelSelectionChanged(int index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::MultiMCSettingsPage *ui;
|
Ui::MultiMCPage *ui;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Stores the currently selected update channel.
|
* Stores the currently selected update channel.
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>MultiMCSettingsPage</class>
|
<class>MultiMCPage</class>
|
||||||
<widget class="QWidget" name="MultiMCSettingsPage">
|
<widget class="QWidget" name="MultiMCPage">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
@ -1,5 +1,5 @@
|
|||||||
#include "MultiMCPage.h"
|
#include "ImportPage.h"
|
||||||
#include "ui_MultiMCPage.h"
|
#include "ui_ImportPage.h"
|
||||||
|
|
||||||
#include "MultiMC.h"
|
#include "MultiMC.h"
|
||||||
#include "dialogs/NewInstanceDialog.h"
|
#include "dialogs/NewInstanceDialog.h"
|
||||||
@ -30,30 +30,30 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
MultiMCPage::MultiMCPage(NewInstanceDialog* dialog, QWidget *parent)
|
ImportPage::ImportPage(NewInstanceDialog* dialog, QWidget *parent)
|
||||||
: QWidget(parent), ui(new Ui::MultiMCPage), dialog(dialog)
|
: QWidget(parent), ui(new Ui::ImportPage), dialog(dialog)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->modpackEdit->setValidator(new UrlValidator(ui->modpackEdit));
|
ui->modpackEdit->setValidator(new UrlValidator(ui->modpackEdit));
|
||||||
connect(ui->modpackEdit, &QLineEdit::textChanged, this, &MultiMCPage::updateState);
|
connect(ui->modpackEdit, &QLineEdit::textChanged, this, &ImportPage::updateState);
|
||||||
}
|
}
|
||||||
|
|
||||||
MultiMCPage::~MultiMCPage()
|
ImportPage::~ImportPage()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MultiMCPage::shouldDisplay() const
|
bool ImportPage::shouldDisplay() const
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCPage::openedImpl()
|
void ImportPage::openedImpl()
|
||||||
{
|
{
|
||||||
updateState();
|
updateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCPage::updateState()
|
void ImportPage::updateState()
|
||||||
{
|
{
|
||||||
if(!isOpened)
|
if(!isOpened)
|
||||||
{
|
{
|
||||||
@ -75,6 +75,11 @@ void MultiMCPage::updateState()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if(input.endsWith("?client=y")) {
|
||||||
|
input.chop(9);
|
||||||
|
input.append("/file");
|
||||||
|
url = QUrl::fromUserInput(input);
|
||||||
|
}
|
||||||
// hook, line and sinker.
|
// hook, line and sinker.
|
||||||
QFileInfo fi(url.fileName());
|
QFileInfo fi(url.fileName());
|
||||||
dialog->setSuggestedPack(fi.completeBaseName(), new InstanceImportTask(url));
|
dialog->setSuggestedPack(fi.completeBaseName(), new InstanceImportTask(url));
|
||||||
@ -86,13 +91,13 @@ void MultiMCPage::updateState()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCPage::setUrl(const QString& url)
|
void ImportPage::setUrl(const QString& url)
|
||||||
{
|
{
|
||||||
ui->modpackEdit->setText(url);
|
ui->modpackEdit->setText(url);
|
||||||
updateState();
|
updateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MultiMCPage::on_modpackBtn_clicked()
|
void ImportPage::on_modpackBtn_clicked()
|
||||||
{
|
{
|
||||||
const QUrl url = QFileDialog::getOpenFileUrl(this, tr("Choose modpack"), modpackUrl(), tr("Zip (*.zip)"));
|
const QUrl url = QFileDialog::getOpenFileUrl(this, tr("Choose modpack"), modpackUrl(), tr("Zip (*.zip)"));
|
||||||
if (url.isValid())
|
if (url.isValid())
|
||||||
@ -109,7 +114,7 @@ void MultiMCPage::on_modpackBtn_clicked()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QUrl MultiMCPage::modpackUrl() const
|
QUrl ImportPage::modpackUrl() const
|
||||||
{
|
{
|
||||||
const QUrl url(ui->modpackEdit->text());
|
const QUrl url(ui->modpackEdit->text());
|
||||||
if (url.isValid() && !url.isRelative() && !url.host().isEmpty())
|
if (url.isValid() && !url.isRelative() && !url.host().isEmpty())
|
@ -23,33 +23,33 @@
|
|||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
{
|
{
|
||||||
class MultiMCPage;
|
class ImportPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
class NewInstanceDialog;
|
class NewInstanceDialog;
|
||||||
|
|
||||||
class MultiMCPage : public QWidget, public BasePage
|
class ImportPage : public QWidget, public BasePage
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit MultiMCPage(NewInstanceDialog* dialog, QWidget *parent = 0);
|
explicit ImportPage(NewInstanceDialog* dialog, QWidget *parent = 0);
|
||||||
virtual ~MultiMCPage();
|
virtual ~ImportPage();
|
||||||
virtual QString displayName() const override
|
virtual QString displayName() const override
|
||||||
{
|
{
|
||||||
return tr("MultiMC");
|
return tr("Import from zip");
|
||||||
}
|
}
|
||||||
virtual QIcon icon() const override
|
virtual QIcon icon() const override
|
||||||
{
|
{
|
||||||
return MMC->getThemedIcon("multimc");
|
return MMC->getThemedIcon("viewfolder");
|
||||||
}
|
}
|
||||||
virtual QString id() const override
|
virtual QString id() const override
|
||||||
{
|
{
|
||||||
return "multimc";
|
return "import";
|
||||||
}
|
}
|
||||||
virtual QString helpPage() const override
|
virtual QString helpPage() const override
|
||||||
{
|
{
|
||||||
return "MultiMC-packs";
|
return "Zip-import";
|
||||||
}
|
}
|
||||||
virtual bool shouldDisplay() const override;
|
virtual bool shouldDisplay() const override;
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ private:
|
|||||||
QUrl modpackUrl() const;
|
QUrl modpackUrl() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::MultiMCPage *ui = nullptr;
|
Ui::ImportPage *ui = nullptr;
|
||||||
NewInstanceDialog* dialog = nullptr;
|
NewInstanceDialog* dialog = nullptr;
|
||||||
};
|
};
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>MultiMCPage</class>
|
<class>ImportPage</class>
|
||||||
<widget class="QWidget" name="MultiMCPage">
|
<widget class="QWidget" name="ImportPage">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
Loading…
Reference in New Issue
Block a user