Skip to content

Commit

Permalink
- bug context menu (right click)->layouts->"Layout Name" always selec…
Browse files Browse the repository at this point in the history
…ts the last Layout

- fixed so the right layout is picked and loaded
  • Loading branch information
vssdeo committed Oct 15, 2022
1 parent 7b39058 commit e7f9c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminatorlib/terminal_popup_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,5 @@ def add_layout_launcher(self, menu):
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)

0 comments on commit e7f9c73

Please sign in to comment.