mirror of
https://github.com/praktimarc/kst4contest.git
synced 2026-11-19 01:52:29 +01:00
Take the fallback band over with the station
It completes frequencies given without a band and has to fit the taken station's bands, so it belongs to the station and not to the operator. Written-by: Claude Fable 5.2
This commit is contained in:
4 files changed
+14
-1
No files matched your search
@@ -87,6 +87,8 @@ internal fun copyStation(from: ChatPreferences, to: ChatPreferences) {
|
|||||||
to.setTrxSynch_so2rEnabled(from.isTrxSynch_so2rEnabled())
|
to.setTrxSynch_so2rEnabled(from.isTrxSynch_so2rEnabled())
|
||||||
to.setNotify_dxClusterServerEnabled(from.isNotify_dxClusterServerEnabled())
|
to.setNotify_dxClusterServerEnabled(from.isNotify_dxClusterServerEnabled())
|
||||||
to.setNotify_dxclusterServerPort(from.getNotify_dxclusterServerPort())
|
to.setNotify_dxclusterServerPort(from.getNotify_dxclusterServerPort())
|
||||||
|
// The band a frequency given without one is completed with; it has to fit the bands above.
|
||||||
|
to.setNotify_optionalFrequencyPrefix(from.getNotify_optionalFrequencyPrefix().get())
|
||||||
|
|
||||||
// Rotators.
|
// Rotators.
|
||||||
to.setStn_pstRotatorEnabled(from.isStn_pstRotatorEnabled())
|
to.setStn_pstRotatorEnabled(from.isStn_pstRotatorEnabled())
|
||||||
|
|||||||
@@ -168,4 +168,15 @@ class WizardStationCopyTest {
|
|||||||
|
|
||||||
assertEquals(2, donor.getLoginChatCategoryMain().categoryNumber, "the two profiles must not share a category object")
|
assertEquals(2, donor.getLoginChatCategoryMain().categoryNumber, "the two profiles must not share a category object")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun theFallbackBandComesWithTheStation() {
|
||||||
|
// It completes frequencies given without a band, so it has to fit the station's bands.
|
||||||
|
val donor = prefs { setNotify_optionalFrequencyPrefix("432") }
|
||||||
|
val target = prefs { setNotify_optionalFrequencyPrefix("144") }
|
||||||
|
|
||||||
|
copyStation(donor, target)
|
||||||
|
|
||||||
|
assertEquals("432", target.getNotify_optionalFrequencyPrefix().get())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,6 @@ setNotify_bandUpgradeHintOnLogEnabled
|
|||||||
setNotify_bandUpgradePriorityBoostEnabled
|
setNotify_bandUpgradePriorityBoostEnabled
|
||||||
setNotify_momentumWindowSeconds
|
setNotify_momentumWindowSeconds
|
||||||
setNotify_noReplyPenaltyMinutes
|
setNotify_noReplyPenaltyMinutes
|
||||||
setNotify_optionalFrequencyPrefix
|
|
||||||
setNotify_playCWCallsignsOnRxedPMs
|
setNotify_playCWCallsignsOnRxedPMs
|
||||||
setNotify_playSimpleSounds
|
setNotify_playSimpleSounds
|
||||||
setNotify_playVoiceCallsignsOnRxedPMs
|
setNotify_playVoiceCallsignsOnRxedPMs
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ setLogsynch_wintestSkedMode
|
|||||||
setLogsynch_wintestUsePassQrg
|
setLogsynch_wintestUsePassQrg
|
||||||
setNotify_dxClusterServerEnabled
|
setNotify_dxClusterServerEnabled
|
||||||
setNotify_dxclusterServerPort
|
setNotify_dxclusterServerPort
|
||||||
|
setNotify_optionalFrequencyPrefix
|
||||||
setStn_antennaBeamWidthDeg
|
setStn_antennaBeamWidthDeg
|
||||||
setStn_bandActive10G
|
setStn_bandActive10G
|
||||||
setStn_bandActive1240
|
setStn_bandActive1240
|
||||||
|
|||||||
Reference in new issue
Block a user