Display a warning sign over the Zotero logo in the status bar if there's a startup error
This commit is contained in:
parent
6ff2168729
commit
7a1339158a
|
@ -243,15 +243,14 @@
|
|||
|
||||
<statusbar id="status-bar">
|
||||
<statusbarpanel id="zotero-status-bar-icon"
|
||||
src="chrome://zotero/skin/zotero_logo_18px.png"
|
||||
class="statusbarpanel-iconic" onclick="ZoteroPane.toggleDisplay();"
|
||||
hidden="true"/>
|
||||
class="statusbarpanel-iconic" onclick="ZoteroPane.toggleDisplay();"/>
|
||||
</statusbar>
|
||||
|
||||
<script>
|
||||
window.addEventListener('load', function(e){
|
||||
if (Zotero){
|
||||
document.getElementById('zotero-status-bar-icon').setAttribute('hidden', 'false');
|
||||
if (!Zotero){
|
||||
document.getElementById('zotero-status-bar-icon').setAttribute('error', 'true');
|
||||
document.getElementById('zotero-status-bar-icon').setAttribute('tooltiptext', 'There was an error starting Zotero.');
|
||||
}
|
||||
}, false);
|
||||
</script>
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
width: 49px;
|
||||
margin:0 0 -1px;
|
||||
padding:0 5px 1px;
|
||||
list-style-image: url(chrome://zotero/skin/zotero_logo_18px.png);
|
||||
}
|
||||
#zotero-status-bar-icon[error=true]
|
||||
{
|
||||
list-style-image: url(chrome://zotero/skin/zotero_logo_18px_error.png);
|
||||
}
|
||||
|
||||
#zotero-pane
|
||||
|
|
BIN
chrome/skin/default/zotero/zotero_logo_18px_error.png
Normal file
BIN
chrome/skin/default/zotero/zotero_logo_18px_error.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
Loading…
Reference in New Issue
Block a user