Skip to content

Commit

Permalink
Removed preventing items to refresh.
Browse files Browse the repository at this point in the history
Fixed minor issue with Log.
  • Loading branch information
ErrorErrorError committed Sep 28, 2020
1 parent 9ba5f5d commit 731daab
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions HeliPort/Appearance/StatusMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ final class StatusMenu: NSMenu, NSMenuDelegate {
// - MARK: Action handlers

@objc private func clickMenuItem(_ sender: NSMenuItem) {
Log.debug("Clicked \(sender.title))")
Log.debug("Clicked \(sender.title)")
switch sender.title {
case .createReport:
// Disable while bug report is being genetated, if autoenable == true, NSMenu ignores isEnable
Expand Down Expand Up @@ -563,13 +563,6 @@ final class StatusMenu: NSMenu, NSMenuDelegate {
@objc private func updateNetworkList() {
guard isNetworkCardEnabled else { return }

networkItemList.forEach {
guard let wifiView = $0.view as? WifiMenuItemView, !wifiView.isMouseOver else {
Log.debug("Skipping network list since mouse over network")
return
}
}

NetworkManager.scanNetwork { networkList in
self.isNetworkListEmpty = networkList.count == 0 && !self.isNetworkConnected
var networkList = networkList
Expand Down

0 comments on commit 731daab

Please sign in to comment.