Add option to keep showing last video frame after playback

Previously Clapper showed last frame, now it defaults to black screen, so add an option for users to choose what they like better
This commit is contained in:
Rafał Dzięgiel
2021-06-16 15:34:36 +02:00
parent bea3b1670d
commit 21ccab1cc2
9 changed files with 68 additions and 10 deletions

View File

@@ -81,7 +81,8 @@ class ClapperPlayer extends GstClapper.Clapper
this._onSettingsKeyChanged(settings, key);
const flag = Gio.SettingsBindFlags.GET;
settings.bind('subtitle-font', this.pipeline, 'subtitle_font_desc', flag);
settings.bind('keep-last-frame', this.widget, 'keep-last-frame', flag);
settings.bind('subtitle-font', this.pipeline, 'subtitle-font-desc', flag);
}
set_initial_config()

View File

@@ -41,6 +41,7 @@ class ClapperGeneralPage extends PrefsBase.Grid
comboBox.connect('changed', this._onVolumeInitialChanged.bind(this, spinButton));
this.addTitle('Finish');
this.addCheckButton('Keep showing last frame', 'keep-last-frame');
this.addCheckButton('Close after playback', 'close-auto');
}