@@ -121,8 +121,10 @@ pub struct GeneralSettingsStore {
121121 skip_serializing_if = "no"
122122 ) ]
123123 pub enable_native_camera_preview : bool ,
124- #[ serde( default ) ]
124+ #[ serde( default = "default_true" ) ]
125125 pub auto_zoom_on_clicks : bool ,
126+ #[ serde( default = "default_true" ) ]
127+ pub capture_keyboard_events : bool ,
126128 #[ serde( default ) ]
127129 pub post_deletion_behaviour : PostDeletionBehaviour ,
128130 #[ serde( default = "default_excluded_windows" ) ]
@@ -137,6 +139,8 @@ pub struct GeneralSettingsStore {
137139 pub crash_recovery_recording : bool ,
138140 #[ serde( default = "default_max_fps" ) ]
139141 pub max_fps : u32 ,
142+ #[ serde( default = "default_transcription_hints" ) ]
143+ pub transcription_hints : Vec < String > ,
140144 #[ serde( default ) ]
141145 pub editor_preview_quality : EditorPreviewQuality ,
142146 #[ serde( default ) ]
@@ -145,6 +149,8 @@ pub struct GeneralSettingsStore {
145149 pub camera_window_position : Option < WindowPosition > ,
146150 #[ serde( default ) ]
147151 pub camera_window_positions_by_monitor_name : BTreeMap < String , WindowPosition > ,
152+ #[ serde( default = "default_true" ) ]
153+ pub has_completed_onboarding : bool ,
148154}
149155
150156fn default_enable_native_camera_preview ( ) -> bool {
@@ -167,6 +173,15 @@ fn default_max_fps() -> u32 {
167173 60
168174}
169175
176+ fn default_transcription_hints ( ) -> Vec < String > {
177+ vec ! [
178+ "Cap" . to_string( ) ,
179+ "TypeScript" . to_string( ) ,
180+ "My Brand Name" . to_string( ) ,
181+ "mywebsite.com" . to_string( ) ,
182+ ]
183+ }
184+
170185fn default_server_url ( ) -> String {
171186 std:: option_env!( "VITE_SERVER_URL" )
172187 . unwrap_or ( "https://cap.so" )
@@ -203,17 +218,20 @@ impl Default for GeneralSettingsStore {
203218 recording_countdown : Some ( 3 ) ,
204219 enable_native_camera_preview : default_enable_native_camera_preview ( ) ,
205220 auto_zoom_on_clicks : false ,
221+ capture_keyboard_events : true ,
206222 post_deletion_behaviour : PostDeletionBehaviour :: DoNothing ,
207223 excluded_windows : default_excluded_windows ( ) ,
208224 delete_instant_recordings_after_upload : false ,
209225 instant_mode_max_resolution : 1920 ,
210226 default_project_name_template : None ,
211227 crash_recovery_recording : true ,
212228 max_fps : 60 ,
229+ transcription_hints : default_transcription_hints ( ) ,
213230 editor_preview_quality : EditorPreviewQuality :: Half ,
214231 main_window_position : None ,
215232 camera_window_position : None ,
216233 camera_window_positions_by_monitor_name : BTreeMap :: new ( ) ,
234+ has_completed_onboarding : false ,
217235 }
218236 }
219237}
0 commit comments