use gif file instead of png
This commit is contained in:
parent
8746a53521
commit
05fcd2d337
|
@ -25,6 +25,9 @@ class CryptoBoxPlugin:
|
||||||
## default icon of this plugin (relative path)
|
## default icon of this plugin (relative path)
|
||||||
defaultIconFileName = "plugin_icon.gif"
|
defaultIconFileName = "plugin_icon.gif"
|
||||||
|
|
||||||
|
## fallback icon file (in the common plugin directory)
|
||||||
|
fallbackIconFileName = "plugin_icon_unknown.gif"
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, cbox, pluginDir):
|
def __init__(self, cbox, pluginDir):
|
||||||
self.cbox = cbox
|
self.cbox = cbox
|
||||||
|
@ -62,7 +65,7 @@ class CryptoBoxPlugin:
|
||||||
else:
|
else:
|
||||||
plugin_icon_file = os.path.join(self.pluginDir, image)
|
plugin_icon_file = os.path.join(self.pluginDir, image)
|
||||||
if not os.access(plugin_icon_file, os.R_OK):
|
if not os.access(plugin_icon_file, os.R_OK):
|
||||||
plugin_icon_file = os.path.join(self.cbox.prefs["Locations"]["PluginDir"], "plugin_icon_unknown.png")
|
plugin_icon_file = os.path.join(self.cbox.prefs["Locations"]["PluginDir"], self.fallbackIconFileName)
|
||||||
return cherrypy.lib.cptools.serveFile(plugin_icon_file)
|
return cherrypy.lib.cptools.serveFile(plugin_icon_file)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -253,7 +253,7 @@ class WebInterfaceSites:
|
||||||
|
|
||||||
examples are: non-https, readonly-config, ...
|
examples are: non-https, readonly-config, ...
|
||||||
"""
|
"""
|
||||||
## TODO: maybe add an option "mount"?
|
## TODO: maybe add an option "mount" (if it is available, but inactive)?
|
||||||
if self.cbox.prefs.requiresPartition() and not self.cbox.prefs.getActivePartition():
|
if self.cbox.prefs.requiresPartition() and not self.cbox.prefs.getActivePartition():
|
||||||
self.dataset["Data.EnvironmentWarning"] = "ReadOnlyConfig"
|
self.dataset["Data.EnvironmentWarning"] = "ReadOnlyConfig"
|
||||||
# TODO: turn this on soon (add "not") - for now it is annoying
|
# TODO: turn this on soon (add "not") - for now it is annoying
|
||||||
|
|
Loading…
Reference in a new issue