Skip to content

Commit

Permalink
style: fix typo (#2)
Browse files Browse the repository at this point in the history
* fix typo

* Restyle style: fix typo (#3)

* Restyled by black

* Restyled by reorder-python-imports

* Restyled by yapf

Co-authored-by: Restyled.io <commits@restyled.io>

Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
3 people authored and strycore committed Jun 12, 2021
1 parent 6d56b2e commit f71fd2d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lutris/gui/config/services_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@

from lutris import settings
from lutris.gui.config.base_config_box import BaseConfigBox
from lutris.gui.widgets.utils import ICON_SIZE, get_icon
from lutris.gui.widgets.utils import get_icon
from lutris.gui.widgets.utils import ICON_SIZE
from lutris.services import SERVICES


class ServicesBox(BaseConfigBox):
def __init__(self):
super().__init__()
self.add(self.get_section_label(_("Enabled intagrations")))
self.add(self.get_section_label(_("Enabled integrations")))
listbox = Gtk.ListBox(visible=True)
self.pack_start(listbox, False, False, 12)

Expand All @@ -29,10 +30,10 @@ def _get_service_box(self, service_key):
margin_left=12,
margin_top=12,
margin_bottom=12,
visible=True
visible=True,
)
service = SERVICES[service_key]
pixbuf = get_icon(service.icon, icon_format='pixbuf', size=ICON_SIZE)
pixbuf = get_icon(service.icon, icon_format="pixbuf", size=ICON_SIZE)
if pixbuf:
icon = Gtk.Image(visible=True)
icon.set_from_pixbuf(pixbuf)
Expand All @@ -45,7 +46,8 @@ def _get_service_box(self, service_key):
box.pack_start(label, True, True, 0)

checkbox = Gtk.Switch(visible=True)
if settings.read_setting(service_key, section="services").lower() == "true":
if settings.read_setting(service_key,
section="services").lower() == "true":
checkbox.set_active(True)
checkbox.connect("state-set", self._on_service_change, service_key)
alignment = Gtk.Alignment.new(0.5, 0.5, 0, 0)
Expand Down

0 comments on commit f71fd2d

Please sign in to comment.