Skip to content

Commit

Permalink
fetch only if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
research11111 committed Oct 27, 2023
1 parent bbcc221 commit cf4af7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion avogadro/qtplugins/plugindownloader/pluginmanagerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ PluginManagerWidget::PluginManagerWidget(QWidget* parent)
connect(m_ui->refreshPluginsList, &QPushButton::clicked, this, &PluginManagerWidget::refreshPluginsListClicked);
connect(m_ui->addPluginLocation, &QPushButton::clicked, this, &PluginManagerWidget::addPluginLocationClicked);

if ( ! QFile::exists(getPluginsListFilePath()) ) {
if ( QFile::exists(getPluginsListFilePath()) ) {
updatePluginsList();
} else {
fetchPluginsList();
}
}
Expand Down

0 comments on commit cf4af7d

Please sign in to comment.