@@ -162,8 +162,8 @@ export class SettingsData {
162
162
@JsonProperty ( )
163
163
public customTDPRangeMax : number ;
164
164
165
- @JsonProperty ( )
166
- public customTDPRangeMin : number ;
165
+ // @JsonProperty ()
166
+ // public customTDPRangeMin: number;
167
167
168
168
@JsonProperty ( )
169
169
public forceShowTDP : boolean = false ;
@@ -176,14 +176,15 @@ export class SettingsData {
176
176
177
177
constructor ( ) {
178
178
this . customTDPRangeMax = DEFAULT_TDP_MAX ;
179
- this . customTDPRangeMin = DEFAULT_TDP_MIN ;
179
+ // this.customTDPRangeMin = DEFAULT_TDP_MIN;
180
180
}
181
181
182
182
public deepCopy ( copyTarget : SettingsData ) {
183
183
this . enabled = copyTarget . enabled ;
184
184
this . enableCustomTDPRange = copyTarget . enableCustomTDPRange ;
185
185
this . customTDPRangeMax = copyTarget . customTDPRangeMax ;
186
- this . customTDPRangeMin = copyTarget . customTDPRangeMin ;
186
+ this . forceShowTDP = copyTarget . forceShowTDP ;
187
+ // this.customTDPRangeMin = copyTarget.customTDPRangeMin;
187
188
this . perApp = { } ;
188
189
Object . entries ( copyTarget . perApp ) . forEach ( ( [ key , value ] ) => {
189
190
this . perApp [ key ] = new AppSettingData ( ) ;
@@ -438,20 +439,21 @@ export class Settings {
438
439
}
439
440
440
441
static appCustomTDPRangeMin ( ) {
441
- return this . _instance . data . customTDPRangeMin ;
442
- }
443
-
444
- static setCustomTDPRangeMin ( customTDPRangeMin : number ) {
445
- if ( this . _instance . data . customTDPRangeMin != customTDPRangeMin ) {
446
- this . _instance . data . customTDPRangeMin = customTDPRangeMin ;
447
- Settings . saveSettingsToLocalStorage ( ) ;
448
- Backend . applySettings ( APPLYTYPE . SET_TDP ) ;
449
- PluginManager . updateComponent (
450
- ComponentName . CUSTOM_TDP ,
451
- UpdateType . UPDATE
452
- ) ;
453
- }
454
- }
442
+ // return this._instance.data.customTDPRangeMin;
443
+ return DEFAULT_TDP_MIN ;
444
+ }
445
+
446
+ // static setCustomTDPRangeMin(customTDPRangeMin: number) {
447
+ // if (this._instance.data.customTDPRangeMin != customTDPRangeMin) {
448
+ // this._instance.data.customTDPRangeMin = customTDPRangeMin;
449
+ // Settings.saveSettingsToLocalStorage();
450
+ // Backend.applySettings(APPLYTYPE.SET_TDP);
451
+ // PluginManager.updateComponent(
452
+ // ComponentName.CUSTOM_TDP,
453
+ // UpdateType.UPDATE
454
+ // );
455
+ // }
456
+ // }
455
457
456
458
static appTDPEnable ( ) {
457
459
return Settings . ensureApp ( ) . tdpEnable ?? true ;
@@ -475,11 +477,12 @@ export class Settings {
475
477
}
476
478
477
479
static getTDPMin ( ) {
478
- if ( this . _instance . data . enableCustomTDPRange ) {
479
- return this . _instance . data . customTDPRangeMin ;
480
- } else {
481
- return 3 ;
482
- }
480
+ // if (this._instance.data.enableCustomTDPRange) {
481
+ // return this._instance.data.customTDPRangeMin;
482
+ // } else {
483
+ // return 3;
484
+ // }
485
+ return DEFAULT_TDP_MIN ;
483
486
}
484
487
485
488
static saveTDPFromQAM ( tdp : number , tdpEnable : boolean ) {
0 commit comments