|
|
@ -143,7 +143,7 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate { |
|
|
|
|
|
|
|
|
|
|
|
tableView.removeRows(at: indexSet, withAnimation: NSTableView.AnimationOptions()) |
|
|
|
tableView.removeRows(at: indexSet, withAnimation: NSTableView.AnimationOptions()) |
|
|
|
|
|
|
|
|
|
|
|
if self.dataStore.shouldDisplay(ViewType.showAppInForeground) { |
|
|
|
if self.dataStore.shouldDisplay(ViewType.showAppInForeground) { |
|
|
|
windowController.deleteTimezone(at: row) |
|
|
|
windowController.deleteTimezone(at: row) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
guard let panelController = PanelController.panel() else { return } |
|
|
|
guard let panelController = PanelController.panel() else { return } |
|
|
@ -178,7 +178,7 @@ extension TimezoneDataSource: NSTableViewDataSource, NSTableViewDelegate { |
|
|
|
if response.rawValue == 1000 { |
|
|
|
if response.rawValue == 1000 { |
|
|
|
OperationQueue.main.addOperation { [weak self] in |
|
|
|
OperationQueue.main.addOperation { [weak self] in |
|
|
|
guard let sSelf = self else { return } |
|
|
|
guard let sSelf = self else { return } |
|
|
|
|
|
|
|
|
|
|
|
let indexSet = IndexSet(integer: row) |
|
|
|
let indexSet = IndexSet(integer: row) |
|
|
|
|
|
|
|
|
|
|
|
tableView.removeRows(at: indexSet, withAnimation: NSTableView.AnimationOptions.slideUp) |
|
|
|
tableView.removeRows(at: indexSet, withAnimation: NSTableView.AnimationOptions.slideUp) |
|
|
|