Skip to content

Commit

Permalink
Show internal ID under Identifier label
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed Jan 27, 2024
1 parent 9952c97 commit 04d99bb
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions lutris/gui/config/game_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,12 @@ def _get_sortname_box(self):
return box

def _get_slug_box(self):
identifier_box = Gtk.VBox(spacing=12, margin_right=12, margin_left=12)
slug_box = Gtk.VBox(spacing=12, margin_right=12, margin_left=12)

slug_entry_box = Gtk.Box(spacing=12, margin_right=0, margin_left=0)

slug_entry_box.pack_start(Label(_("Identifier")), False, False, 0)
slug_label = Label()
slug_label.set_markup(_("Identifier\n<span size='x-small'>(Internal ID: %s)</span>") % self.game.id)
slug_entry_box.pack_start(slug_label, False, False, 0)

self.slug_entry = SlugEntry()
self.slug_entry.set_text(self.game.slug)
Expand All @@ -206,17 +207,9 @@ def _get_slug_box(self):
self.slug_change_button.connect("clicked", self.on_slug_change_clicked)
slug_entry_box.pack_start(self.slug_change_button, False, False, 0)

identifier_box.pack_start(slug_entry_box, True, True, 0)

game_id_box = Gtk.Box(spacing=12, margin_right=0, margin_left=12)
label = Label(_("Internal ID"))
game_id_box.pack_start(label, False, False, 0)
game_id_label = Label(_(str(self.game.id)))
game_id_box.pack_start(game_id_label, True, True, 0)

identifier_box.pack_start(game_id_box, True, True, 0)
slug_box.pack_start(slug_entry_box, True, True, 0)

return identifier_box
return slug_box

def _get_directory_box(self):
"""Return widget displaying the location of the game and allowing to move it"""
Expand Down

0 comments on commit 04d99bb

Please sign in to comment.