(self, _button)
Clone a profile and add the new one to the list
Clone a profile and add the new one to the list
Clone a profile and add the new one to the list
def on_profileclonebutton_clicked(self, _button):
        """"Clone a profile and add the new one to the list"""
        guiget = self.builder.get_object

        treeview = guiget('profilelist')
        selection = treeview.get_selection()
        (model, rowiter) = selection.get_selected()
        profile = model.get_value(rowiter, 0)

        toclone = self.config.get_profile_by_name(profile)
        self.addprofile(profile, toclone)
def on_profileclonebutton_clicked ( self , _button ) : guiget = self . builder . get_object treeview = guiget ( 'profilelist' ) selection = treeview . get_selection ( ) ( model , rowiter ) = selection . get_selected ( ) profile = model . get_value ( rowiter , 0 ) toclone = self . config . get_profile_by_name ( profile ) self . addprofile ( profile , toclone )