Add remember_position field to the Preferences and VideoPreferences structs, and add a checkbox in the preferences page to toggle it

This commit is contained in:
bbielsa
2021-10-25 19:50:17 -04:00
committed by Emilien Devos
parent 7f3ef12297
commit a6a0bbf398
5 changed files with 18 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ struct Preferences
property video_loop : Bool = CONFIG.default_user_preferences.video_loop
property extend_desc : Bool = CONFIG.default_user_preferences.extend_desc
property volume : Int32 = CONFIG.default_user_preferences.volume
property remember_position : Bool = CONFIG.default_user_preferences.remember_position
module BoolToString
def self.to_json(value : String, json : JSON::Builder)