Skip to content

Commit

Permalink
fix: profiler option checkboxes were not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidoine committed Mar 13, 2021
1 parent ae10e58 commit 4813924
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/engine/profiler.ts
Expand Up @@ -105,9 +105,9 @@ export class OvaleProfilerClass {
const value = this.ovaleOptions.db.global.profiler[
name
];
return value != undefined;
return value;
},
set: (info: LuaArray<string>, value: string) => {
set: (info: LuaArray<string>, value: boolean) => {
const name = info[lualength(info)];
this.ovaleOptions.db.global.profiler[name] = value;
if (value) {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Options.ts
Expand Up @@ -94,7 +94,7 @@ export interface OvaleDb {
};
global: {
debug: LuaObj<boolean>;
profiler: LuaObj<string>;
profiler: LuaObj<boolean>;
};
}

Expand Down

0 comments on commit 4813924

Please sign in to comment.