<div dir="ltr">Hi,<div><br></div><div>I am trying to add symbols/colorramps through Python API and I have a problem that after adding symbol/colorramps, the added symbols/colorramps don't show up in Style Manager right away. The symbols are added in the symbology-ng-style.db, but the added symbols show up once I restart QGIS</div><div><br></div><div>This is more or less the code:</div><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">style_manager = QgsStyleV2()<br>style_manager.load(QgsApplication.userStyleV2Path())<br># Adding symbols here<br>style_manager.addSymbol(symbol_name, symbol, True)<br># Perhaps this works, load the db again<br>style_manager.load(QgsApplication.userStyleV2Path())</blockquote><div><br></div><div>Is there something in the API that I could call to trigger the dialog to show up the changes after adding the symbols?</div><div><br></div></div><div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><p><b><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">-------------------</span></b></p><b>Akbar Gumbira </b></div><div><b style="font-size:12.8px"><a href="http://www.akbargumbira.com" target="_blank">www.akbargumbira.com</a></b></div></div></div></div></div>
</div></div>