NOISSUE Some happy little refactors

This commit is contained in:
Petr Mrázek 2021-11-20 16:22:22 +01:00
parent eafeb64dec
commit 0c861db7a2
142 changed files with 812 additions and 694 deletions

View file

@ -1,5 +1,5 @@
#include "LanguageWizardPage.h"
#include <Launcher.h>
#include <Application.h>
#include <translations/TranslationsModel.h>
#include "widgets/LanguageSelectionWidget.h"
@ -29,13 +29,13 @@ bool LanguageWizardPage::wantsRefreshButton()
void LanguageWizardPage::refresh()
{
auto translations = LAUNCHER->translations();
auto translations = APPLICATION->translations();
translations->downloadIndex();
}
bool LanguageWizardPage::validatePage()
{
auto settings = LAUNCHER->settings();
auto settings = APPLICATION->settings();
QString key = mainWidget->getSelectedLanguageKey();
settings->set("Language", key);
return true;