Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Fixed a very dumb thing I feel so stupid rn
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterrry authored Aug 1, 2021
1 parent c3d89da commit d41a524
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1034,10 +1034,12 @@ class ViewController: NSViewController{
var custom: CustomFrequencies? = nil
if let a = ViewController.configFilePath {
custom = try? JSONDecoder().decode(CustomFrequencies.self, from: FileHandle(forReadingFrom: a).readDataToEndOfFile()).reliable()
if log, let c = custom, let cf = c.frequencies, cf.count > 0 {
tprint("From memory: \(cf.count)")
if let c = custom, let cf = c.frequencies, cf.count > 0 {
if log { tprint("From memory: \(cf.count)") }
ViewController.retrievedFrequencies.append(contentsOf: cf)
}
} else {
tprint("WARN6: Memory error")
}
SFX.playSFX(sfx: SFX.Effects.radioSetup)
tprint(log ? "Connecting via \((ViewController.defaults.integer(forKey: "server") == 1) ? "Silverwing" : "Sprint")" : "Please wait...")
Expand Down

0 comments on commit d41a524

Please sign in to comment.