Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plugin numbering when adding plugins #2201

Closed
wants to merge 2 commits into from
Closed

Conversation

isf63
Copy link
Contributor

@isf63 isf63 commented Dec 20, 2024

Closes #2126

panel/panelpluginsmodel.cpp Outdated Show resolved Hide resolved
@@ -284,7 +284,9 @@ QPointer<Plugin> PanelPluginsModel::loadPlugin(LXQt::PluginInfo const & desktopF

QString PanelPluginsModel::findNewPluginSettingsGroup(const QString &pluginType) const
{
QStringList groups = mPanel->settings()->childGroups();
QString userConfigDir = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation);
QSettings userSettings(QStringLiteral("%1/lxqt/panel.conf").arg(userConfigDir), QSettings::IniFormat);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There isn't a reason that the config file should be panel.conf, to say nothing of its path. The panel config file I'm using right now is panel-kwin_wayland.conf.

#2126 was rather a question, whose answer you found. It was by no means a bug, and can be closed.

Copy link
Contributor Author

@isf63 isf63 Dec 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll close this PR because I'm not very familiar with Qt's system integration, nor LXQt settings.

I think it is a bug to have "<pluginname>2" as the first numbering, due to system config, though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is a bug…

By definition, it isn't.

@isf63 isf63 closed this Dec 21, 2024
@isf63 isf63 deleted the numbering branch January 10, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin numbering when adding plugins is unexpected
2 participants