2025-06-19 08:57:34 +08:00
|
|
|
package ratio_setting
|
|
|
|
|
|
|
|
|
|
import "sync/atomic"
|
|
|
|
|
|
|
|
|
|
var exposeRatioEnabled atomic.Bool
|
|
|
|
|
|
|
|
|
|
func init() {
|
2025-08-31 13:08:34 +08:00
|
|
|
exposeRatioEnabled.Store(false)
|
2025-06-19 08:57:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func SetExposeRatioEnabled(enabled bool) {
|
2025-08-31 13:08:34 +08:00
|
|
|
exposeRatioEnabled.Store(enabled)
|
2025-06-19 08:57:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func IsExposeRatioEnabled() bool {
|
2025-08-31 13:08:34 +08:00
|
|
|
return exposeRatioEnabled.Load()
|
|
|
|
|
}
|