<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:2011788222;
        mso-list-template-ids:1102237616;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Thanks. I did think of that but am trying to avoid hundred if not thousands of users having to deal with a manual solution.  I think I have another work around I am testing.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Ismail Sunni <imajimatika@gmail.com> <br>
<b>Sent:</b> Tuesday, January 10, 2023 10:46 PM<br>
<b>To:</b> Catania, Luke A ERDC-RDE-GRL-VA CIV <Luke.A.Catania@erdc.dren.mil><br>
<b>Cc:</b> qgis-developer <qgis-developer@lists.osgeo.org><br>
<b>Subject:</b> Re: [QGIS-Developer] Revert Previous Plugin, disable "Upgrade All" and "Upgrade Plugin" buttons<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi Luke,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">You can install the previous version of the plugin by installing it from its zip file manually.<o:p></o:p></p>
</div>
<div>
<ol start="1" type="1">
<li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
Go to the plugin page, (e.g. <a href="Blockedhttps://plugins.qgis.org/plugins/ViewshedAnalysis/Blocked">Blockedhttps://plugins.qgis.org/plugins/ViewshedAnalysis/Blocked</a>)<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
Click the <i>version</i> tab<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
Click the version you want to install (e.g. <a href="Blockedhttps://plugins.qgis.org/plugins/ViewshedAnalysis/version/1.7/Blocked">Blockedhttps://plugins.qgis.org/plugins/ViewshedAnalysis/version/1.7/Blocked</a>)<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
Download the plugin (a zip file)<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
Open Plugin Manager<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
Uninstall the plugin<o:p></o:p></li><li class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
Install from Zip<o:p></o:p></li></ol>
<div>
<p class="MsoNormal">One possible way to disable the Upgrade All or Upgrade Plugin is to disable all the plugin repositories (i.e. Plugins -> Settings -> disable all repositories).<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Hope this helps.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, Jan 11, 2023 at 9:49 AM Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">I had a user that may have hit the "Upgrade All" button in the plugins window. Does that automatically upgrade all installed plugins to the newest version? If so is there a way to revert back to the previous versions. He may have just hit
 the Upgrade Plugin button for the specific plugin.  Not sure and I did not want to test it and mess up my configuration.<br>
<br>
We have created our own QGIS plugin that relies on the VisibilityAnalysis plugin and upgrading VisibilityAnalysis from 1.7 to 1.8 breaks our tool as I created a my own Visibility Analysis UI to run the VisibilityAnalysis tool.  I basically want to prevent a
 user from upgrading any plugin that we access so that this does not happen.  Is there a way to disable "Upgrade All" and "Upgrade Plugin" buttons in the plugin window through settings, interface customization, or programmatically through python on QGIS using
 startup.py?<br>
<br>
Thanks,<br>
Luke<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked" target="_blank">
Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked</a><br>
Unsubscribe: <a href="Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked" target="_blank">
Blockedhttps://lists.osgeo.org/mailman/listinfo/qgis-developerBlocked</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">Ismail Sunni<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Software Engineer<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="Blockedhttp://ismailsunni.idBlocked" target="_blank">ismailsunni.id</a><o:p></o:p></p>
<div>
<p class="MsoNormal"><a href="Blockedhttp://ismailsunni.wordpress.comBlocked" target="_blank">ismailsunni.wordpress.com</a><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>