File size: 283 Bytes
daa8246
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package ratio_setting

import "sync/atomic"

var exposeRatioEnabled atomic.Bool

func init() {
	exposeRatioEnabled.Store(false)
}

func SetExposeRatioEnabled(enabled bool) {
	exposeRatioEnabled.Store(enabled)
}

func IsExposeRatioEnabled() bool {
	return exposeRatioEnabled.Load()
}