def METHOD_NAME(self) -> None:
    ip4s = []
    for index in range(self.ip4_listbox.listbox.size()):
        ip4 = self.ip4_listbox.listbox.get(index)
        ip4s.append(ip4)
    ip6s = []
    for index in range(self.ip6_listbox.listbox.size()):
        ip6 = self.ip6_listbox.listbox.get(index)
        ip6s.append(ip6)
    ip_config = self.app.guiconfig.ips
    ip_changed = False
    if ip_config.ip4 != self.ip4:
        ip_config.ip4 = self.ip4
        ip_changed = True
    if ip_config.ip6 != self.ip6:
        ip_config.ip6 = self.ip6
        ip_changed = True
    ip_config.ip4s = ip4s
    ip_config.ip6s = ip6s
    ip_config.enable_ip4 = self.enable_ip4.get()
    ip_config.enable_ip6 = self.enable_ip6.get()
    if ip_changed:
        self.app.core.ifaces_manager.update_ips(self.ip4, self.ip6)
    self.app.save_config()
    self.destroy()