mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-22 19:49:56 +00:00
NOISSUE debranding for real, initial work
This is probably very broken on macOS and Windows and will need a lot of work to complete fully.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <QTreeView>
|
||||
#include <QHeaderView>
|
||||
#include <QLabel>
|
||||
#include "MultiMC.h"
|
||||
#include "Launcher.h"
|
||||
#include "translations/TranslationsModel.h"
|
||||
|
||||
LanguageSelectionWidget::LanguageSelectionWidget(QWidget *parent) :
|
||||
@@ -29,7 +29,7 @@ LanguageSelectionWidget::LanguageSelectionWidget(QWidget *parent) :
|
||||
helpUsLabel->setWordWrap(true);
|
||||
verticalLayout->addWidget(helpUsLabel);
|
||||
|
||||
auto translations = MMC->translations();
|
||||
auto translations = LAUNCHER->translations();
|
||||
auto index = translations->selectedIndex();
|
||||
languageView->setModel(translations.get());
|
||||
languageView->setCurrentIndex(index);
|
||||
@@ -41,7 +41,7 @@ LanguageSelectionWidget::LanguageSelectionWidget(QWidget *parent) :
|
||||
|
||||
QString LanguageSelectionWidget::getSelectedLanguageKey() const
|
||||
{
|
||||
auto translations = MMC->translations();
|
||||
auto translations = LAUNCHER->translations();
|
||||
return translations->data(languageView->currentIndex(), Qt::UserRole).toString();
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ void LanguageSelectionWidget::languageRowChanged(const QModelIndex& current, con
|
||||
{
|
||||
return;
|
||||
}
|
||||
auto translations = MMC->translations();
|
||||
auto translations = LAUNCHER->translations();
|
||||
QString key = translations->data(current, Qt::UserRole).toString();
|
||||
translations->selectLanguage(key);
|
||||
translations->updateLanguage(key);
|
||||
|
||||
Reference in New Issue
Block a user