98
98
99
99
translatableAttributes = ["name" , "description" , "about" , "tags" ]
100
100
101
- reposGroup = "/Qgis/plugin-repos"
102
- settingsGroup = "/Qgis/plugin-installer"
103
- seenPluginGroup = "/Qgis/plugin-seen"
101
+ settingsGroup = "app/plugin_installer"
102
+ reposGroup = "app/plugin_repositories"
104
103
105
104
officialRepo = (QCoreApplication .translate ("QgsPluginInstaller" , "QGIS Official Plugin Repository" ), "https://plugins.qgis.org/plugins/plugins.xml" )
106
105
@@ -790,7 +789,7 @@ def rebuild(self):
790
789
def markNews (self ):
791
790
""" mark all new plugins as new """
792
791
settings = QgsSettings ()
793
- seenPlugins = settings .value (seenPluginGroup , list (self .mPlugins .keys ()), type = str )
792
+ seenPlugins = settings .value (settingsGroup + '/seen_plugins' , list (self .mPlugins .keys ()), type = str )
794
793
if len (seenPlugins ) > 0 :
795
794
for i in list (self .mPlugins .keys ()):
796
795
if seenPlugins .count (i ) == 0 and self .mPlugins [i ]["status" ] == "not installed" :
@@ -800,11 +799,11 @@ def markNews(self):
800
799
def updateSeenPluginsList (self ):
801
800
""" update the list of all seen plugins """
802
801
settings = QgsSettings ()
803
- seenPlugins = settings .value (seenPluginGroup , list (self .mPlugins .keys ()), type = str )
802
+ seenPlugins = settings .value (settingsGroup + '/seen_plugins' , list (self .mPlugins .keys ()), type = str )
804
803
for i in list (self .mPlugins .keys ()):
805
804
if seenPlugins .count (i ) == 0 :
806
805
seenPlugins += [i ]
807
- settings .setValue (seenPluginGroup , seenPlugins )
806
+ settings .setValue (settingsGroup + '/seen_plugins' , seenPlugins )
808
807
809
808
# ----------------------------------------- #
810
809
def isThereAnythingNew (self ):
0 commit comments