Make plugins not activatable under windows(dbus support needed)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[info]
|
||||
name: Wicd support
|
||||
short_name: wicd_support
|
||||
version: 0.1.1
|
||||
version: 0.1.2
|
||||
description: Support for autodetection of network status for Wicd Network Manager.
|
||||
Requires wicd and python-dbus.
|
||||
authors = Denis Fomin <fominde@gmail.com>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
|
||||
from common import gajim
|
||||
from plugins import GajimPlugin
|
||||
@@ -17,6 +18,10 @@ class WicdPlugin(GajimPlugin):
|
||||
|
||||
def test_activatable(self):
|
||||
self.available_text = ''
|
||||
if os.name == 'nt':
|
||||
self.available_text = _('Plugin can\'t be run under Windows.')
|
||||
self.activatable = False
|
||||
return
|
||||
if not dbus_support.supported:
|
||||
self.activatable = False
|
||||
self.available_text += _('python-dbus is missing! '
|
||||
|
||||
Reference in New Issue
Block a user