diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-30 00:48:46 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:06 -0500 |
| commit | c4df6b8ec98feb34cc9b9785e6d4d0eac6b3f571 (patch) | |
| tree | c874d57f52243362ab2e7114c3d409b6326729cc /src/modinfodialognexus.cpp | |
| parent | c699aeb6d862f2c0960de126538931e4f13368b7 (diff) | |
split nexus connection stuff into NexusConnectionUI so it can be reused in the instance creation dialog
removed the PluginContainer* parameter from NexusInterface::instance()
- it's a singleton, so it only needs to be given once, not every time
- it doesn't even matter because the first time instance() is called, it creates the singleton, but the plugin container is always null
- and setPluginContainer() is called much later from OrganizerCore with the correct value
added non functional nexus page to instance creation dialog
Diffstat (limited to 'src/modinfodialognexus.cpp')
| -rw-r--r-- | src/modinfodialognexus.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modinfodialognexus.cpp b/src/modinfodialognexus.cpp index dd95cdaa..b4099a8d 100644 --- a/src/modinfodialognexus.cpp +++ b/src/modinfodialognexus.cpp @@ -141,8 +141,8 @@ void NexusTab::updateWebpage() const int modID = mod().nexusId(); if (isValidModID(modID)) { - const QString nexusLink = NexusInterface::instance(&plugin()) - ->getModURL(modID, mod().gameName()); + const QString nexusLink = NexusInterface::instance() + .getModURL(modID, mod().gameName()); ui->visitNexus->setToolTip(nexusLink); refreshData(modID); @@ -360,8 +360,8 @@ void NexusTab::onVisitNexus() const int modID = mod().nexusId(); if (isValidModID(modID)) { - const QString nexusLink = NexusInterface::instance(&plugin()) - ->getModURL(modID, mod().gameName()); + const QString nexusLink = NexusInterface::instance() + .getModURL(modID, mod().gameName()); shell::Open(QUrl(nexusLink)); } |
