feat: Added chat when MySQL is in use
This commit is contained in:
@@ -3766,7 +3766,11 @@ func (a *App) TestLookupProvider(name, callsign, user, password string) (lookup.
|
||||
}
|
||||
r, err := p.Lookup(a.ctx, callsign)
|
||||
if errors.Is(err, lookup.ErrNotFound) {
|
||||
return lookup.Result{}, fmt.Errorf("%s reachable but %q not found (creds look OK)", name, callsign)
|
||||
// A "not found" (vs an auth error) means the login WORKED — the test
|
||||
// callsign just isn't in this database, common for special-event calls
|
||||
// (e.g. TM74TFR not on HamQTH). The credentials are valid, so lookups of
|
||||
// other callsigns will work: report success, not failure.
|
||||
return lookup.Result{Source: name, Callsign: callsign, Name: "credentials OK — " + callsign + " not in " + name}, nil
|
||||
}
|
||||
if err != nil {
|
||||
return lookup.Result{}, err
|
||||
@@ -6990,6 +6994,12 @@ func (a *App) FlexSetCWFilter(bw int) error {
|
||||
}
|
||||
return a.cat.FlexDo(func(fc cat.FlexController) error { return fc.SetCWFilter(bw) })
|
||||
}
|
||||
func (a *App) FlexSetFilter(lo int, hi int) error {
|
||||
if a.cat == nil {
|
||||
return fmt.Errorf("cat not initialized")
|
||||
}
|
||||
return a.cat.FlexDo(func(fc cat.FlexController) error { return fc.SetFilter(lo, hi) })
|
||||
}
|
||||
|
||||
// SwitchCATRig hot-swaps the active OmniRig slot (Rig1 ↔ Rig2) without
|
||||
// requiring a trip through the full Settings panel. Persists the choice
|
||||
|
||||
Reference in New Issue
Block a user