Fix list of groups in context menu to prevent duplicates
This commit is contained in:
parent
b356cfc9ee
commit
a30755e670
|
@ -1171,7 +1171,8 @@ text/plain
|
||||||
|
|
||||||
def do_create_group (self, widget, window, entry):
|
def do_create_group (self, widget, window, entry):
|
||||||
name = entry.get_text ()
|
name = entry.get_text ()
|
||||||
self.terminator.groupings.append (name)
|
if name not in self.terminator.groupings:
|
||||||
|
self.terminator.groupings.append (name)
|
||||||
self.set_group (None, name)
|
self.set_group (None, name)
|
||||||
|
|
||||||
window.destroy ()
|
window.destroy ()
|
||||||
|
|
Loading…
Reference in New Issue