Skip to content

Commit

Permalink
Remove unnecessary plugincontainer from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Silarn committed Sep 24, 2023
1 parent 4bd860a commit 11522cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ SettingsDialog::SettingsDialog(PluginContainer* pluginContainer, Settings& setti
{
ui->setupUi(this);

m_tabs.push_back(std::unique_ptr<SettingsTab>(
new GeneralSettingsTab(settings, m_pluginContainer, *this)));
m_tabs.push_back(
std::unique_ptr<SettingsTab>(new GeneralSettingsTab(settings, *this)));
m_tabs.push_back(std::unique_ptr<SettingsTab>(new ThemeSettingsTab(settings, *this)));
m_tabs.push_back(
std::unique_ptr<SettingsTab>(new ModListSettingsTab(settings, *this)));
Expand Down
5 changes: 2 additions & 3 deletions src/settingsdialoggeneral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@

using namespace MOBase;

GeneralSettingsTab::GeneralSettingsTab(Settings& s, PluginContainer* pluginContainer,
SettingsDialog& d)
: SettingsTab(s, d), m_PluginContainer(pluginContainer)
GeneralSettingsTab::GeneralSettingsTab(Settings& s, SettingsDialog& d)
: SettingsTab(s, d)
{
// language
addLanguages();
Expand Down
6 changes: 1 addition & 5 deletions src/settingsdialoggeneral.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
class GeneralSettingsTab : public SettingsTab
{
public:
GeneralSettingsTab(Settings& settings, PluginContainer* pluginContainer,
SettingsDialog& dialog);
GeneralSettingsTab(Settings& settings, SettingsDialog& dialog);

void update();

Expand All @@ -21,9 +20,6 @@ class GeneralSettingsTab : public SettingsTab

void onEditCategories();
void onResetDialogs();

private:
PluginContainer* m_PluginContainer;
};

#endif // SETTINGSDIALOGGENERAL_H

0 comments on commit 11522cf

Please sign in to comment.