Merge pull request #653 from vssdeo/bug-652-loading-layout-loads-the-last-added-layout

- bug context menu (right click)->layouts->"Layout Name" always selec…
This commit is contained in:
Matt Rose 2022-10-30 10:38:45 -04:00 committed by GitHub
commit af1ec64c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,5 +252,5 @@ class TerminalPopupMenu(object):
layouts = self.config.list_layouts()
for layout in layouts:
item = Gtk.MenuItem(layout)
item.connect('activate', lambda x: spawn_new_terminator(self.terminator.origcwd, ['-u', '-l', layout]))
item.connect('activate', lambda x: spawn_new_terminator(self.terminator.origcwd, ['-u', '-l', x.get_label()]))
submenu.append(item)