# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1568838653 14400 # Node ID 0c338cd2cc8e4af03295d4c9db744c0c2e5b8981 # Parent 06d752537e214187d38c134e4443a7b7260b0589 ROMDockable: show in title bar if we're looking at the ROM's PRG or CHR This is a useful bit of information. diff --git a/widgets.py b/widgets.py --- a/widgets.py +++ b/widgets.py @@ -402,9 +402,12 @@ class ROMDockable(QW.QDockWidget): def __init__(self, filename, filetype, tile_picker): - super().__init__(filename.split("/")[-1]) + rom = NES_ROM(filename) - rom = NES_ROM(filename) + title = filename.split("/")[-1] + title += " (CHR)" if rom.CHR else " (PRG)" + + super().__init__(title) self.rom_canvas = ROMCanvas(rom, tile_picker) self.colour_picker = ColourPicker()