- bug context menu (right click)->layouts->"Layout Name" always selects the last Layout

- fixed so the right layout is picked and loaded
This commit is contained in:
Vishweshwar Saran Singh Deo 2022-10-16 01:47:36 +05:30
parent 7b39058b0e
commit e7f9c731e8
1 changed files with 1 additions and 1 deletions

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)