Skip to content

Commit

Permalink
make cursor setting saveable
Browse files Browse the repository at this point in the history
  • Loading branch information
acidcoke committed May 30, 2023
1 parent c90c28c commit 6025067
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configs/default/cursor.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"tick_interval_ms": 16,
"hold_trigger_ms": 500,
"auto_play": false,
"enable": true,
"enable": 1,
"mouse_acceleration": false,
"use_transformation_matrix": false
}
2 changes: 1 addition & 1 deletion configs/profile_1/cursor.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"tick_interval_ms": 16,
"hold_trigger_ms": 500,
"auto_play": false,
"enable": true,
"enable": 1,
"mouse_acceleration": false,
"use_transformation_matrix": false
}
2 changes: 1 addition & 1 deletion configs/profile_2/cursor.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"tick_interval_ms": 16,
"hold_trigger_ms": 500,
"auto_play": false,
"enabled": true,
"enable": 1,
"mouse_acceleration": false,
"use_transformation_matrix": false
}
2 changes: 2 additions & 0 deletions src/gui/pages/page_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ def enable_cursor(self, new_state: bool):
div["slider"] = slider
new.update({cfg_name: div})
self.divs=new
ConfigManager().set_temp_config(field="enable", value=new_state)
ConfigManager().apply_config()

def cursor_toggle_callback(self, command, args: dict):
logger.info(f"cursor_toggle_callback {command} with {args}")
Expand Down

0 comments on commit 6025067

Please sign in to comment.