use gif file instead of png
This commit is contained in:
parent
8746a53521
commit
05fcd2d337
2 changed files with 5 additions and 2 deletions
|
@ -25,6 +25,9 @@ class CryptoBoxPlugin:
|
|||
## default icon of this plugin (relative path)
|
||||
defaultIconFileName = "plugin_icon.gif"
|
||||
|
||||
## fallback icon file (in the common plugin directory)
|
||||
fallbackIconFileName = "plugin_icon_unknown.gif"
|
||||
|
||||
|
||||
def __init__(self, cbox, pluginDir):
|
||||
self.cbox = cbox
|
||||
|
@ -62,7 +65,7 @@ class CryptoBoxPlugin:
|
|||
else:
|
||||
plugin_icon_file = os.path.join(self.pluginDir, image)
|
||||
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)
|
||||
|
||||
|
||||
|
|
|
@ -253,7 +253,7 @@ class WebInterfaceSites:
|
|||
|
||||
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():
|
||||
self.dataset["Data.EnvironmentWarning"] = "ReadOnlyConfig"
|
||||
# TODO: turn this on soon (add "not") - for now it is annoying
|
||||
|
|
Loading…
Reference in a new issue