~tomasgroth/openlp/presentation-load-speedup

« back to all changes in this revision

Viewing changes to openlp/plugins/bibles/bibleplugin.py

  • Committer: Tomas Groth
  • Date: 2018-08-05 20:52:07 UTC
  • mfrom: (2815.1.13 openlp)
  • Revision ID: tomasgroth@yahoo.dk-20180805205207-2xdcfcbrj054kox1
trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from openlp.core.api.http import register_endpoint
26
26
from openlp.core.common.actions import ActionList
27
27
from openlp.core.common.i18n import UiStrings, translate
 
28
from openlp.core.ui.icons import UiIcons
28
29
from openlp.core.lib import Plugin, StringContent, build_icon
29
30
from openlp.core.lib.ui import create_action
30
31
from openlp.plugins.bibles.endpoint import api_bibles_endpoint, bibles_endpoint
74
75
    def __init__(self):
75
76
        super(BiblePlugin, self).__init__('bibles', __default_settings__, BibleMediaItem, BiblesTab)
76
77
        self.weight = -9
77
 
        self.icon_path = ':/plugins/plugin_bibles.png'
78
 
        self.icon = build_icon(self.icon_path)
 
78
        self.icon_path = UiIcons().bible
 
79
        self.icon = UiIcons().bible
79
80
        self.manager = BibleManager(self)
80
81
        register_endpoint(bibles_endpoint)
81
82
        register_endpoint(api_bibles_endpoint)