~hyperair/do/auto-disable-plugin-about-button

« back to all changes in this revision

Viewing changes to Do/src/Do.UI/ManagePluginsPreferencesWidget.cs

  • Committer: Chow Loong Jin
  • Date: 2014-11-18 04:07:30 UTC
  • Revision ID: hyperair@debian.org-20141118040730-yjzrrd3zp99u9v43
Disable About button when no URL is set for a plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
                                .SelectMany (id => PluginManager.ConfigurablesForAddin (id))
162
162
                                .Any ();
163
163
 
164
 
                        btn_about.Sensitive = nview.GetSelectedAddins ().Any ();
 
164
                        btn_about.Sensitive = nview.GetSelectedAddins ()
 
165
                                .Where (id => !string.IsNullOrEmpty (AddinManager.Registry.GetAddin (id).Description.Url))
 
166
                                .Any ();
165
167
                }
166
168
 
167
169
                private void OnPluginToggled (string id, bool enabled)