Skip to content

Commit

Permalink
change ip shows if changed
Browse files Browse the repository at this point in the history
  • Loading branch information
fuji246 committed Dec 28, 2021
1 parent 0ae8a8e commit ce70904
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions LomoAgent/StatusMenuController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,7 @@ class StatusMenuController: NSObject {
lomodService.getUserList()

if let ipList = lomodService.getListenIPs() {
for ip in ipList {
if ip == listenIp {
return // still valid
}
}
// not found!
if let firstIp = ipList.first {
if let firstIp = ipList.first, firstIp != listenIp {
listenIp = firstIp
NotificationCenter.default.post(name: .NotifyIpChanged, object: self)
}
Expand Down

0 comments on commit ce70904

Please sign in to comment.