spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 1d2d280f5ef27fc32ef9d4108897b63d66bf2005
parent 954bf89417e571969bfdb0916db155a3e19c1747
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Sun, 27 Mar 2011 17:24:32 +0800

Read/save the check_update preference

Diffstat:
Msrc/spek-preferences-dialog.vala | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/spek-preferences-dialog.vala b/src/spek-preferences-dialog.vala @@ -60,6 +60,9 @@ namespace Spek { language_box.pack_start (language_combo, false, false, 0); general_subbox.pack_start(language_box, false, false, 0); var check_update = new CheckButton.with_mnemonic (_("Check for _updates")); + check_update.active = prefs.check_update; + check_update.toggled.connect ( + () => prefs.check_update = check_update.active); general_subbox.pack_start (check_update, false, false, 0); general_alignment.add (general_subbox); general_box.pack_start (general_alignment, false, false, 0);