feat(src/common): add write_runtime_system_volume_following_file

The new function writes a runtime state file to track the system volume following setting.

- New Features
  - Added `write_runtime_system_volume_following_file` to persist system volume following state.
This commit is contained in:
sankalp committed 2026-02-22 02:08:51 +05:45
1 parent f70e13dd70
commit 95255580b1
1 file changed
+5
+5
View File
@@ -125,6 +125,11 @@ int write_runtime_mouse_enabled_file(int enabled) {
return 1;
}
int write_runtime_system_volume_following_file(int enabled) {
write_runtime_state_file("sysvol-following", enabled);
return 1;
}
void int_to_str(char *buffer, size_t size, int value) {
safe_snprintf_wrapper(buffer, size, "%d", value);