diff --git a/src/categories.cpp b/src/categories.cpp
index 74de0a59c..18cee4f9d 100644
--- a/src/categories.cpp
+++ b/src/categories.cpp
@@ -28,7 +28,6 @@ along with Mod Organizer. If not, see .
#include
#include
#include
-#include
#include "nexusinterface.h"
@@ -85,23 +84,25 @@ void CategoryFactory::loadCategories()
int id = cells[0].toInt(&cell0Ok);
int parentID = cells[3].trimmed().toInt(&cell3Ok);
if (!cell0Ok || !cell3Ok) {
- log::error(tr("invalid category line {}: {}").toStdString(), lineNum, line.constData());
+ log::error(tr("invalid category line {}: {}").toStdString(), lineNum,
+ line.constData());
}
addCategory(id, QString::fromUtf8(cells[1].constData()), nexusCats, parentID);
} else if (cells.count() == 3) {
- bool cell0Ok = true;
- bool cell3Ok = true;
- int id = cells[0].toInt(&cell0Ok);
- int parentID = cells[2].trimmed().toInt(&cell3Ok);
- if (!cell0Ok || !cell3Ok) {
- log::error(tr("invalid category line {}: {}").toStdString(), lineNum, line.constData());
- }
+ bool cell0Ok = true;
+ bool cell3Ok = true;
+ int id = cells[0].toInt(&cell0Ok);
+ int parentID = cells[2].trimmed().toInt(&cell3Ok);
+ if (!cell0Ok || !cell3Ok) {
+ log::error(tr("invalid category line {}: {}").toStdString(), lineNum,
+ line.constData());
+ }
- addCategory(id, QString::fromUtf8(cells[1].constData()), std::vector(), parentID);
+ addCategory(id, QString::fromUtf8(cells[1].constData()),
+ std::vector(), parentID);
} else {
- log::error(
- tr("invalid category line {}: {} ({} cells)").toStdString(),
- lineNum, line.constData(), cells.count());
+ log::error(tr("invalid category line {}: {} ({} cells)").toStdString(), lineNum,
+ line.constData(), cells.count());
}
}
categoryFile.close();
@@ -118,21 +119,22 @@ void CategoryFactory::loadCategories()
if (nexCells.count() == 3) {
std::vector nexusCats;
QString nexName = nexCells[1];
- bool ok = false;
- int nexID = nexCells[2].toInt(&ok);
+ bool ok = false;
+ int nexID = nexCells[2].toInt(&ok);
if (!ok) {
- log::error(tr("invalid nexus ID {}").toStdString(), nexCells[2].constData());
+ log::error(tr("invalid nexus ID {}").toStdString(),
+ nexCells[2].constData());
}
int catID = nexCells[0].toInt(&ok);
if (!ok) {
- log::error(tr("invalid category id {}").toStdString(), nexCells[0].constData());
+ log::error(tr("invalid category id {}").toStdString(),
+ nexCells[0].constData());
}
m_NexusMap.insert_or_assign(nexID, NexusCategory(nexName, nexID));
m_NexusMap.at(nexID).m_CategoryID = catID;
} else {
- log::error(
- tr("invalid nexus category line {}: {} ({} cells)").toStdString(),
- lineNum, nexLine.constData(), nexCells.count());
+ log::error(tr("invalid nexus category line {}: {} ({} cells)").toStdString(),
+ lineNum, nexLine.constData(), nexCells.count());
}
}
}
@@ -140,7 +142,8 @@ void CategoryFactory::loadCategories()
}
std::sort(m_Categories.begin(), m_Categories.end());
setParents();
- if (needLoad) loadDefaultCategories();
+ if (needLoad)
+ loadDefaultCategories();
}
CategoryFactory* CategoryFactory::instance()
@@ -244,7 +247,8 @@ CategoryFactory::countCategories(std::function f
return result;
}
-int CategoryFactory::addCategory(const QString& name, const std::vector& nexusCats,
+int CategoryFactory::addCategory(const QString& name,
+ const std::vector& nexusCats,
int parentID)
{
int id = 1;
@@ -257,15 +261,17 @@ int CategoryFactory::addCategory(const QString& name, const std::vector(m_Categories.size());
- m_Categories.push_back(Category(index, id, name, parentID, std::vector()));
+ m_Categories.push_back(
+ Category(index, id, name, parentID, std::vector()));
m_IDMap[id] = index;
}
-void CategoryFactory::addCategory(int id, const QString& name, const std::vector& nexusCats, int parentID)
+void CategoryFactory::addCategory(int id, const QString& name,
+ const std::vector& nexusCats,
+ int parentID)
{
for (auto nexusCat : nexusCats) {
m_NexusMap.insert_or_assign(nexusCat.m_ID, nexusCat);
@@ -276,7 +282,8 @@ void CategoryFactory::addCategory(int id, const QString& name, const std::vector
m_IDMap[id] = index;
}
-void CategoryFactory::setNexusCategories(std::vector& nexusCats)
+void CategoryFactory::setNexusCategories(
+ std::vector& nexusCats)
{
m_NexusMap.empty();
for (auto nexusCat : nexusCats) {
@@ -286,7 +293,6 @@ void CategoryFactory::setNexusCategories(std::vectorsecond.m_CategoryID)) {
- log::debug(tr("nexus category id {} maps to internal {}").toStdString(), nexusID, m_IDMap.at(result->second.m_CategoryID));
+ log::debug(tr("nexus category id {} maps to internal {}").toStdString(), nexusID,
+ m_IDMap.at(result->second.m_CategoryID));
return m_IDMap.at(result->second.m_CategoryID);
}
}
diff --git a/src/categories.h b/src/categories.h
index c1d0c7a3d..3f91e6c52 100644
--- a/src/categories.h
+++ b/src/categories.h
@@ -31,7 +31,8 @@ along with Mod Organizer. If not, see .
*to look up categories, optimized to where the request comes from. Therefore be very
*careful which of the two you have available
**/
-class CategoryFactory : public QObject {
+class CategoryFactory : public QObject
+{
Q_OBJECT;
friend class CategoriesDialog;
@@ -53,31 +54,37 @@ class CategoryFactory : public QObject {
};
public:
- struct NexusCategory {
- NexusCategory(const QString& name, const int nexusID)
- : m_Name(name), m_ID(nexusID) {}
+ struct NexusCategory
+ {
+ NexusCategory(const QString& name, const int nexusID) : m_Name(name), m_ID(nexusID)
+ {}
QString m_Name;
int m_ID;
int m_CategoryID = -1;
- friend bool operator==(const NexusCategory& LHS, const NexusCategory& RHS) {
+ friend bool operator==(const NexusCategory& LHS, const NexusCategory& RHS)
+ {
return LHS.m_ID == RHS.m_ID;
}
- friend bool operator==(const NexusCategory& LHS, const int RHS) {
+ friend bool operator==(const NexusCategory& LHS, const int RHS)
+ {
return LHS.m_ID == RHS;
}
- friend bool operator<(const NexusCategory& LHS, const NexusCategory& RHS) {
+ friend bool operator<(const NexusCategory& LHS, const NexusCategory& RHS)
+ {
return LHS.m_ID < RHS.m_ID;
}
};
- struct Category {
- Category(int sortValue, int id, const QString& name,
- int parentID, std::vector nexusCats)
- : m_SortValue(sortValue), m_ID(id), m_Name(name), m_HasChildren(false), m_ParentID(parentID)
- , m_NexusCats(nexusCats) {}
+ struct Category
+ {
+ Category(int sortValue, int id, const QString& name, int parentID,
+ std::vector nexusCats)
+ : m_SortValue(sortValue), m_ID(id), m_Name(name), m_HasChildren(false),
+ m_ParentID(parentID), m_NexusCats(nexusCats)
+ {}
int m_SortValue;
int m_ID;
int m_ParentID;
@@ -109,7 +116,8 @@ class CategoryFactory : public QObject {
void setNexusCategories(std::vector& nexusCats);
- int addCategory(const QString& name, const std::vector& nexusCats, int parentID);
+ int addCategory(const QString& name, const std::vector& nexusCats,
+ int parentID);
/**
* @brief retrieve the number of available categories
@@ -223,8 +231,8 @@ class CategoryFactory : public QObject {
void loadDefaultCategories();
- void addCategory(int id, const QString& name, const std::vector& nexusCats,
- int parentID);
+ void addCategory(int id, const QString& name,
+ const std::vector& nexusCats, int parentID);
void addCategory(int id, const QString& name, int parentID);
void setParents();
diff --git a/src/categoriestable.cpp b/src/categoriestable.cpp
index ed45826f3..fc53fb585 100644
--- a/src/categoriestable.cpp
+++ b/src/categoriestable.cpp
@@ -21,7 +21,8 @@ along with Mod Organizer. If not, see .
CategoriesTable::CategoriesTable(QWidget* parent) : QTableWidget(parent) {}
-bool CategoriesTable::dropMimeData(int row, int column, const QMimeData* data, Qt::DropAction action)
+bool CategoriesTable::dropMimeData(int row, int column, const QMimeData* data,
+ Qt::DropAction action)
{
if (row == -1)
return false;
@@ -35,15 +36,15 @@ bool CategoriesTable::dropMimeData(int row, int column, const QMimeData* data, Q
QByteArray encoded = data->data("application/x-qabstractitemmodeldatalist");
QDataStream stream(&encoded, QIODevice::ReadOnly);
- while (!stream.atEnd())
- {
+ while (!stream.atEnd()) {
int curRow, curCol;
QMap roleDataMap;
stream >> curRow >> curCol >> roleDataMap;
- for (auto item : findItems(roleDataMap.value(Qt::DisplayRole).toString(), Qt::MatchContains | Qt::MatchWrap))
- {
- if (item->column() != 3) continue;
+ for (auto item : findItems(roleDataMap.value(Qt::DisplayRole).toString(),
+ Qt::MatchContains | Qt::MatchWrap)) {
+ if (item->column() != 3)
+ continue;
QVariantList newData;
for (auto nexData : item->data(Qt::UserRole).toList()) {
if (nexData.toList()[1].toInt() != roleDataMap.value(Qt::UserRole)) {
@@ -59,7 +60,7 @@ bool CategoriesTable::dropMimeData(int row, int column, const QMimeData* data, Q
}
auto nexusItem = item(row, 3);
- auto itemData = nexusItem->data(Qt::UserRole).toList();
+ auto itemData = nexusItem->data(Qt::UserRole).toList();
QVariantList newData;
newData.append(roleDataMap.value(Qt::DisplayRole).toString());
newData.append(roleDataMap.value(Qt::UserRole).toInt());
diff --git a/src/categoriestable.h b/src/categoriestable.h
index 7aaf62a94..8ec797dee 100644
--- a/src/categoriestable.h
+++ b/src/categoriestable.h
@@ -27,11 +27,11 @@ class CategoriesTable : public QTableWidget
{
Q_OBJECT
public:
- CategoriesTable(QWidget *parent = 0);
+ CategoriesTable(QWidget* parent = 0);
protected:
- virtual bool dropMimeData(int row, int column, const QMimeData* data, Qt::DropAction action);
-
+ virtual bool dropMimeData(int row, int column, const QMimeData* data,
+ Qt::DropAction action);
};
-#endif // CATEGORIESTABLE_H
+#endif // CATEGORIESTABLE_H
diff --git a/src/createinstancedialogpages.cpp b/src/createinstancedialogpages.cpp
index 1a5b24705..27bd40625 100644
--- a/src/createinstancedialogpages.cpp
+++ b/src/createinstancedialogpages.cpp
@@ -937,9 +937,7 @@ bool NamePage::checkName(QString parentDir, QString name)
return okay;
}
-ProfilePage::ProfilePage(CreateInstanceDialog& dlg)
- : Page(dlg)
-{}
+ProfilePage::ProfilePage(CreateInstanceDialog& dlg) : Page(dlg) {}
bool ProfilePage::ready() const
{
diff --git a/src/createinstancedialogpages.h b/src/createinstancedialogpages.h
index 25945a2a3..2764796f8 100644
--- a/src/createinstancedialogpages.h
+++ b/src/createinstancedialogpages.h
@@ -561,7 +561,6 @@ class PathsPage : public Page
void setIfEmpty(QLineEdit* e, const QString& path, bool force);
};
-
// default settings for profiles page; allow the user to set their preferred
// defaults for the profile options
//
@@ -577,10 +576,8 @@ class ProfilePage : public Page
CreateInstanceDialog::ProfileSettings profileSettings() const override;
protected:
-
};
-
// nexus connection page; this reuses the ui found in the settings dialog and
// is skipped if there's already an api key in the credentials manager
//
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp
index 6cf3a95cb..3e5303c6d 100644
--- a/src/downloadmanager.cpp
+++ b/src/downloadmanager.cpp
@@ -1323,10 +1323,12 @@ QString DownloadManager::getFileName(int index) const
int DownloadManager::getDownloadIndex(QString filename) const
{
- auto file = std::find_if(m_ActiveDownloads.begin(), m_ActiveDownloads.end(), [=](DownloadManager::DownloadInfo *const val) {
- if (val->m_FileName == filename) return true;
- return false;
- });
+ auto file = std::find_if(m_ActiveDownloads.begin(), m_ActiveDownloads.end(),
+ [=](DownloadManager::DownloadInfo* const val) {
+ if (val->m_FileName == filename)
+ return true;
+ return false;
+ });
if (file != m_ActiveDownloads.end()) {
int fileIndex = m_ActiveDownloads.indexOf(*file);
return fileIndex;
diff --git a/src/modinfo.cpp b/src/modinfo.cpp
index 5ef36ef0d..0ae28e737 100644
--- a/src/modinfo.cpp
+++ b/src/modinfo.cpp
@@ -495,7 +495,8 @@ void ModInfo::addCategory(const QString& categoryName)
{
int id = CategoryFactory::instance()->getCategoryID(categoryName);
if (id == -1) {
- id = CategoryFactory::instance()->addCategory(categoryName, std::vector(), 0);
+ id = CategoryFactory::instance()->addCategory(
+ categoryName, std::vector(), 0);
}
setCategory(id, true);
}
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp
index 2ee9a762a..d82ceb09b 100644
--- a/src/modinforegular.cpp
+++ b/src/modinforegular.cpp
@@ -738,7 +738,8 @@ QString ModInfoRegular::getDescription() const
categoryString << " , ";
}
categoryString << ""
- << ToWString(categoryFactory->getCategoryName(categoryFactory->getCategoryIndex(*catIter)))
+ << ToWString(categoryFactory->getCategoryName(
+ categoryFactory->getCategoryIndex(*catIter)))
<< "";
}
diff --git a/src/modlistcontextmenu.cpp b/src/modlistcontextmenu.cpp
index 28f34b2c3..06cd19d6d 100644
--- a/src/modlistcontextmenu.cpp
+++ b/src/modlistcontextmenu.cpp
@@ -562,7 +562,9 @@ void ModListContextMenu::addRegularActions(ModInfo::Ptr mod)
}
if (mod->nexusId() > 0 && !mod->installationFile().isEmpty()) {
- addAction(tr("Remap Category (From Nexus)"), [=]() { m_actions.remapCategory(m_selected); });
+ addAction(tr("Remap Category (From Nexus)"), [=]() {
+ m_actions.remapCategory(m_selected);
+ });
}
if (mod->nexusId() > 0 && Settings::instance().nexus().trackedIntegration()) {
diff --git a/src/modlistviewactions.cpp b/src/modlistviewactions.cpp
index abc64b60c..aa962c1e0 100644
--- a/src/modlistviewactions.cpp
+++ b/src/modlistviewactions.cpp
@@ -12,6 +12,7 @@
#include "categories.h"
#include "csvbuilder.h"
#include "directoryrefresher.h"
+#include "downloadmanager.h"
#include "filedialogmemory.h"
#include "filterlist.h"
#include "listdialog.h"
@@ -29,8 +30,6 @@
#include "shared/directoryentry.h"
#include "shared/fileregister.h"
#include "shared/filesorigin.h"
-#include "directoryrefresher.h"
-#include "downloadmanager.h"
using namespace MOBase;
using namespace MOShared;
@@ -265,17 +264,18 @@ void ModListViewActions::assignCategories() const
{
for (auto mod : m_core.modList()->allMods()) {
ModInfo::Ptr modInfo = ModInfo::getByName(mod);
- QString file = modInfo->installationFile();
- auto download = m_core.downloadManager()->getDownloadIndex(file);
+ QString file = modInfo->installationFile();
+ auto download = m_core.downloadManager()->getDownloadIndex(file);
if (download >= 0) {
int nexusCategory = m_core.downloadManager()->getCategoryID(download);
- int newCategory = CategoryFactory::instance()->resolveNexusID(nexusCategory);
+ int newCategory = CategoryFactory::instance()->resolveNexusID(nexusCategory);
if (newCategory != 0) {
for (auto category : modInfo->categories()) {
modInfo->removeCategory(category);
}
}
- modInfo->setCategory(CategoryFactory::instance()->getCategoryID(newCategory), true);
+ modInfo->setCategory(CategoryFactory::instance()->getCategoryID(newCategory),
+ true);
}
}
}
@@ -1108,12 +1108,15 @@ void ModListViewActions::remapCategory(const QModelIndexList& indices) const
for (auto& idx : indices) {
ModInfo::Ptr modInfo = ModInfo::getByIndex(idx.data(ModList::IndexRole).toInt());
- int downloadIndex = m_core.downloadManager()->getDownloadIndex(modInfo->installationFile());
+ int downloadIndex =
+ m_core.downloadManager()->getDownloadIndex(modInfo->installationFile());
if (downloadIndex >= 0) {
auto downloadInfo = m_core.downloadManager()->getFileInfo(downloadIndex);
- unsigned int categoryIndex = CategoryFactory::instance()->resolveNexusID(downloadInfo->categoryID);
+ unsigned int categoryIndex =
+ CategoryFactory::instance()->resolveNexusID(downloadInfo->categoryID);
if (categoryIndex != 0)
- modInfo->setPrimaryCategory(CategoryFactory::instance()->getCategoryID(categoryIndex));
+ modInfo->setPrimaryCategory(
+ CategoryFactory::instance()->getCategoryID(categoryIndex));
}
}
}
diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp
index 45415afb6..6a39128f4 100644
--- a/src/nexusinterface.cpp
+++ b/src/nexusinterface.cpp
@@ -93,7 +93,8 @@ void NexusBridge::requestToggleTracking(QString gameName, int modID, bool track,
void NexusBridge::requestGameInfo(QString gameName, QVariant userData)
{
- m_RequestIDs.insert(m_Interface->requestGameInfo(gameName, this, userData, m_SubModule));
+ m_RequestIDs.insert(
+ m_Interface->requestGameInfo(gameName, this, userData, m_SubModule));
}
void NexusBridge::nxmDescriptionAvailable(QString gameName, int modID,
@@ -199,7 +200,8 @@ void NexusBridge::nxmTrackingToggled(QString gameName, int modID, QVariant userD
}
}
-void NexusBridge::nxmGameInfoAvailable(QString gameName, QVariant userData, QVariant resultData, int requestID)
+void NexusBridge::nxmGameInfoAvailable(QString gameName, QVariant userData,
+ QVariant resultData, int requestID)
{
std::set::iterator iter = m_RequestIDs.find(requestID);
if (iter != m_RequestIDs.end()) {
@@ -749,7 +751,9 @@ int NexusInterface::requestToggleTracking(QString gameName, int modID, bool trac
return requestInfo.m_ID;
}
-int NexusInterface::requestGameInfo(QString gameName, QObject* receiver, QVariant userData, const QString& subModule, MOBase::IPluginGame const* game)
+int NexusInterface::requestGameInfo(QString gameName, QObject* receiver,
+ QVariant userData, const QString& subModule,
+ MOBase::IPluginGame const* game)
{
if (m_User.shouldThrottle()) {
throttledWarning(m_User);
@@ -760,10 +764,13 @@ int NexusInterface::requestGameInfo(QString gameName, QObject* receiver, QVarian
m_RequestQueue.enqueue(requestInfo);
connect(this, SIGNAL(nxmGameInfoAvailable(QString, QVariant, QVariant, int)),
- receiver, SLOT(nxmGameInfoAvailable(QString, QVariant, QVariant, int)), Qt::UniqueConnection);
+ receiver, SLOT(nxmGameInfoAvailable(QString, QVariant, QVariant, int)),
+ Qt::UniqueConnection);
- connect(this, SIGNAL(nxmRequestFailed(QString, int, int, QVariant, int, int, QString)),
- receiver, SLOT(nxmRequestFailed(QString, int, int, QVariant, int, int, QString)), Qt::UniqueConnection);
+ connect(
+ this, SIGNAL(nxmRequestFailed(QString, int, int, QVariant, int, int, QString)),
+ receiver, SLOT(nxmRequestFailed(QString, int, int, QVariant, int, int, QString)),
+ Qt::UniqueConnection);
nextRequest();
return requestInfo.m_ID;
@@ -964,9 +971,7 @@ void NexusInterface::nextRequest()
.arg(QString(info.m_Hash.toHex()));
} break;
case NXMRequestInfo::TYPE_GAMEINFO: {
- url = QStringLiteral("%1/games/%2")
- .arg(info.m_URL)
- .arg(info.m_GameName);
+ url = QStringLiteral("%1/games/%2").arg(info.m_URL).arg(info.m_GameName);
}
}
} else {
@@ -1139,8 +1144,8 @@ void NexusInterface::requestFinished(std::list::iterator iter)
iter->m_ID);
} break;
case NXMRequestInfo::TYPE_GAMEINFO: {
- emit nxmGameInfoAvailable(iter->m_GameName, iter->m_UserData, result,
- iter->m_ID);
+ emit nxmGameInfoAvailable(iter->m_GameName, iter->m_UserData, result,
+ iter->m_ID);
} break;
}
@@ -1244,28 +1249,15 @@ NexusInterface::NXMRequestInfo::NXMRequestInfo(
m_Endorse(false), m_Track(false), m_Hash(QByteArray())
{}
-NexusInterface::NXMRequestInfo::NXMRequestInfo(Type type
- , QVariant userData
- , const QString & subModule
- , MOBase::IPluginGame const *game
-)
- : m_ModID(0)
- , m_ModVersion("0")
- , m_FileID(0)
- , m_Reply(nullptr)
- , m_Type(type)
- , m_UpdatePeriod(UpdatePeriod::NONE)
- , m_UserData(userData)
- , m_Timeout(nullptr)
- , m_Reroute(false)
- , m_ID(s_NextID.fetchAndAddAcquire(1))
- , m_URL(get_management_url())
- , m_SubModule(subModule)
- , m_NexusGameID(game->nexusGameID())
- , m_GameName(game->gameNexusName())
- , m_Endorse(false)
- , m_Track(false)
- , m_Hash(QByteArray())
+NexusInterface::NXMRequestInfo::NXMRequestInfo(Type type, QVariant userData,
+ const QString& subModule,
+ MOBase::IPluginGame const* game)
+ : m_ModID(0), m_ModVersion("0"), m_FileID(0), m_Reply(nullptr), m_Type(type),
+ m_UpdatePeriod(UpdatePeriod::NONE), m_UserData(userData), m_Timeout(nullptr),
+ m_Reroute(false), m_ID(s_NextID.fetchAndAddAcquire(1)),
+ m_URL(get_management_url()), m_SubModule(subModule),
+ m_NexusGameID(game->nexusGameID()), m_GameName(game->gameNexusName()),
+ m_Endorse(false), m_Track(false), m_Hash(QByteArray())
{}
NexusInterface::NXMRequestInfo::NXMRequestInfo(
diff --git a/src/nexusinterface.h b/src/nexusinterface.h
index a1a3a0d96..5fab222f1 100644
--- a/src/nexusinterface.h
+++ b/src/nexusinterface.h
@@ -470,7 +470,7 @@ class NexusInterface : public QObject
}
/**
- * @param gameName the game short name to support multiple game sources
+ * @param gameName the game short name to support multiple game sources
* @brief toggle tracking state of the mod
* @param modID id of the mod
* @param track true if the mod should be tracked, false for not tracked
@@ -658,7 +658,7 @@ private slots:
const QString& subModule, MOBase::IPluginGame const* game);
NXMRequestInfo(Type type, QVariant userData, const QString& subModule,
MOBase::IPluginGame const* game);
- NXMRequestInfo(Type type, QVariant userData, const QString &subModule);
+ NXMRequestInfo(Type type, QVariant userData, const QString& subModule);
NXMRequestInfo(UpdatePeriod period, Type type, QVariant userData,
const QString& subModule, MOBase::IPluginGame const* game);
NXMRequestInfo(QByteArray& hash, Type type, QVariant userData,
diff --git a/src/organizer_en.ts b/src/organizer_en.ts
index 389d84aee..71be41879 100644
--- a/src/organizer_en.ts
+++ b/src/organizer_en.ts
@@ -330,67 +330,67 @@ p, li { white-space: pre-wrap; }
CategoryFactory
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
@@ -1334,126 +1334,126 @@ File %3: %4
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
Ignore missing data
-
+
Mark as converted/working
-
+
Visit on Nexus
-
+
Visit on %1
@@ -5137,17 +5137,17 @@ p, li { white-space: pre-wrap; }
-
+
Start tracking
-
+
Stop tracking
-
+
Tracked state unknown
@@ -5313,68 +5313,68 @@ Please enter the name:
ModListViewActions
-
+
Choose Mod
-
+
Mod Archive
-
-
+
+
Create Mod...
-
+
This will create an empty mod.
Please enter a name:
-
-
+
+
A mod with this name already exists
-
+
Create Separator...
-
+
This will create a new separator.
Please enter a name:
-
+
A separator with this name already exists
-
+
Really enable %1 mod(s)?
-
+
Really disable %1 mod(s)?
-
+
Confirm
-
+
You are not currently authenticated with Nexus. Please do so under Settings -> Nexus.
@@ -5572,7 +5572,7 @@ This function will guess the versioning scheme under the assumption that the ins
-
+
Are you sure?
@@ -5588,38 +5588,38 @@ This function will guess the versioning scheme under the assumption that the ins
-
+
Overwrite?
-
+
This will replace the existing mod "%1". Continue?
-
+
failed to remove mod "%1"
-
+
failed to rename "%1" to "%2"
-
+
Move successful.
-
+
This will move all files from overwrite into a new, regular mod.
Please enter a name:
-
+
About to recursively delete:
@@ -5684,32 +5684,32 @@ Please enter a name:
NexusInterface
-
+
Please pick the mod ID for "%1"
-
+
You must authorize MO2 in Settings -> Nexus to use the Nexus API.
-
+
You've exceeded the Nexus API rate limit and requests are now being throttled. Your next batch of requests will be available in approximately %1 minutes and %2 seconds.
-
+
Aborting download: Either you clicked on a premium-only link and your account is not premium, or the download link was generated by a different account than the one stored in Mod Organizer.
-
+
empty response
-
+
invalid response
@@ -6555,61 +6555,61 @@ p, li { white-space: pre-wrap; }
-
+
failed to write mod list: %1
-
+
failed to update tweaked ini file, wrong settings may be used: %1
-
+
failed to create tweaked ini: %1
-
+
failed to open %1
-
+
"%1" is missing or inaccessible
-
-
-
-
-
+
+
+
+
+
invalid mod index: %1
-
+
A mod named "overwrite" was detected, disabled, and moved to the highest priority on the mod list. You may want to rename this mod and enable it again.
-
+
Delete profile-specific save games?
-
+
Do you want to delete the profile-specific save games? (If you select "No", the save games will show up again if you re-enable profile-specific save games)
-
+
Missing profile-specific game INI files!
-
+
Some of your profile-specific game INI files were missing. They will now be copied from the vanilla game folder. You might want to double-check your settings.
Missing files:
@@ -6617,12 +6617,12 @@ Missing files:
-
+
Delete profile-specific game INI files?
-
+
Do you want to delete the profile-specific game INI files? (If you select "No", the INI files will be used again if you re-enable profile-specific game INI files.)
@@ -6912,57 +6912,57 @@ p, li { white-space: pre-wrap; }
-
+
Active
-
+
Update available
-
+
Has category
-
+
Conflicted
-
+
Has hidden files
-
+
Endorsed
-
+
Has backup
-
+
Managed
-
+
Has valid game data
-
+
Has Nexus ID
-
+
Tracked on Nexus
@@ -7045,7 +7045,7 @@ p, li { white-space: pre-wrap; }
-
+
Instance type: %1
@@ -7166,82 +7166,82 @@ p, li { white-space: pre-wrap; }
-
+
Instance location: %1
-
+
Instance name: %1
-
+
Profile settings:
-
+
Local INIs: %1
-
+
+
-
yes
-
-
-
+
+
+
no
-
+
Local Saves: %1
-
+
Automatic Archive Invalidation: %1
-
-
+
+
Base directory: %1
-
+
Downloads
-
+
Mods
-
+
Profiles
-
+
Overwrite
-
+
Game: %1
-
+
Game location: %1
@@ -7773,12 +7773,12 @@ This program is known to cause issues with Mod Organizer, such as freezing or bl
-
+
Confirm?
-
+
This will reset all the choices you made to dialogs and make them all visible again. Continue?
diff --git a/src/profile.cpp b/src/profile.cpp
index 13ce41c7e..d4299a7b0 100644
--- a/src/profile.cpp
+++ b/src/profile.cpp
@@ -177,8 +177,7 @@ void Profile::findProfileSettings()
}
}
- if (setting("", "LocalSettings") ==
- QVariant()) {
+ if (setting("", "LocalSettings") == QVariant()) {
QString backupFile = getIniFileName() + "_";
if (m_Directory.exists(backupFile)) {
storeSetting("", "LocalSettings", true);
diff --git a/src/settingsdialog.cpp b/src/settingsdialog.cpp
index 3a44f2844..67c9dd5d4 100644
--- a/src/settingsdialog.cpp
+++ b/src/settingsdialog.cpp
@@ -37,8 +37,8 @@ SettingsDialog::SettingsDialog(PluginContainer* pluginContainer, Settings& setti
{
ui->setupUi(this);
- m_tabs.push_back(
- std::unique_ptr(new GeneralSettingsTab(settings, m_pluginContainer, *this)));
+ m_tabs.push_back(std::unique_ptr(
+ new GeneralSettingsTab(settings, m_pluginContainer, *this)));
m_tabs.push_back(std::unique_ptr(new ThemeSettingsTab(settings, *this)));
m_tabs.push_back(
std::unique_ptr(new ModListSettingsTab(settings, *this)));
diff --git a/src/settingsdialoggeneral.cpp b/src/settingsdialoggeneral.cpp
index 1254d2353..6a666437e 100644
--- a/src/settingsdialoggeneral.cpp
+++ b/src/settingsdialoggeneral.cpp
@@ -8,8 +8,9 @@
using namespace MOBase;
-GeneralSettingsTab::GeneralSettingsTab(Settings& s, PluginContainer* pluginContainer, SettingsDialog& d)
- : SettingsTab(s, d), m_PluginContainer(pluginContainer)
+GeneralSettingsTab::GeneralSettingsTab(Settings& s, PluginContainer* pluginContainer,
+ SettingsDialog& d)
+ : SettingsTab(s, d), m_PluginContainer(pluginContainer)
{
// language
addLanguages();
@@ -72,7 +73,8 @@ void GeneralSettingsTab::update()
// profile defaults
settings().setProfileLocalInis(ui->localINIs->isChecked());
settings().setProfileLocalSaves(ui->localSaves->isChecked());
- settings().setProfileArchiveInvalidation(ui->automaticArchiveInvalidation->isChecked());
+ settings().setProfileArchiveInvalidation(
+ ui->automaticArchiveInvalidation->isChecked());
// miscellaneous
settings().geometry().setCenterDialogs(ui->centerDialogs->isChecked());
diff --git a/src/settingsdialoggeneral.h b/src/settingsdialoggeneral.h
index ffbeb50cf..aa11edbb3 100644
--- a/src/settingsdialoggeneral.h
+++ b/src/settingsdialoggeneral.h
@@ -1,14 +1,15 @@
#ifndef SETTINGSDIALOGGENERAL_H
#define SETTINGSDIALOGGENERAL_H
+#include "plugincontainer.h"
#include "settings.h"
#include "settingsdialog.h"
-#include "plugincontainer.h"
class GeneralSettingsTab : public SettingsTab
{
public:
- GeneralSettingsTab(Settings& settings, PluginContainer *pluginContainer, SettingsDialog& dialog);
+ GeneralSettingsTab(Settings& settings, PluginContainer* pluginContainer,
+ SettingsDialog& dialog);
void update();
@@ -23,7 +24,6 @@ class GeneralSettingsTab : public SettingsTab
private:
PluginContainer* m_PluginContainer;
-
};
#endif // SETTINGSDIALOGGENERAL_H