mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-24 04:22:39 +00:00
NOISSUE Some happy little refactors
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include <QInputDialog>
|
||||
#include <tools/MCEditTool.h>
|
||||
|
||||
#include "Launcher.h"
|
||||
#include "Application.h"
|
||||
#include <GuiUtil.h>
|
||||
#include <QProcess>
|
||||
#include <FileSystem.h>
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
auto iconFile = worlds->data(sourceIndex, WorldList::IconFileRole).toString();
|
||||
if(iconFile.isNull()) {
|
||||
// NOTE: Minecraft uses the same placeholder for servers AND worlds
|
||||
return LAUNCHER->getThemedIcon("unknown_server");
|
||||
return APPLICATION->getThemedIcon("unknown_server");
|
||||
}
|
||||
return QIcon(iconFile);
|
||||
}
|
||||
@@ -218,7 +218,7 @@ void WorldListPage::on_actionCopy_Seed_triggered()
|
||||
return;
|
||||
}
|
||||
int64_t seed = m_worlds->data(index, WorldList::SeedRole).toLongLong();
|
||||
LAUNCHER->clipboard()->setText(QString::number(seed));
|
||||
APPLICATION->clipboard()->setText(QString::number(seed));
|
||||
}
|
||||
|
||||
void WorldListPage::on_actionMCEdit_triggered()
|
||||
@@ -226,7 +226,7 @@ void WorldListPage::on_actionMCEdit_triggered()
|
||||
if(m_mceditStarting)
|
||||
return;
|
||||
|
||||
auto mcedit = LAUNCHER->mcedit();
|
||||
auto mcedit = APPLICATION->mcedit();
|
||||
|
||||
const QString mceditPath = mcedit->path();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user