emuikernel / wittytwitter

Automatically exported from code.google.com/p/wittytwitter
1 stars 0 forks source link

Options Dialog persistence #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open Options
2. Toggle sound checkbox
3. Close dialog with Window Close not Done Button
4. Refresh feed, verify that the sound setting did not actually change
5. Open Options again
6. Toggled checkbox from #2 will still set to the state set in #2 (which 
should be the opposite of that observed in #4).

What is the expected output? What do you see instead?

See #6 above--looks like the Options dialog is persisting state correctly, 
but the dialog box may need to reinitialized or is otherwise out of synch.

What version of the product are you using? On what operating system?

trunk, rev 128, on Vista SP1

Please provide any additional information below.

Original issue reported on code.google.com by grant.ca...@wharton.upenn.edu on 2 Nov 2007 at 2:35

GoogleCodeExporter commented 8 years ago
leaving priority as medium for now.

Original comment by alan...@gmail.com on 2 Nov 2007 at 3:32

GoogleCodeExporter commented 8 years ago
would adding the Closing event handler and then saving all the settings when 
this 
fires fix this issue?

this.Closing += new System.ComponentModel.CancelEventHandler(Options_Closing);

Then move the following code to the Options_Closing from the DoneButton_Click 
event
and then just call the this.Close() in the DoneButton_Click event.

AppSettings.RefreshInterval = SliderValueTextBlock.Text;
AppSettings.Save();

// Example 
void Options_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
     // Also add code to set windows start up value

     // Save all settings
     AppSettings.RefreshInterval = SliderValueTextBlock.Text;
     AppSettings.Save();
}

Original comment by tena...@gmail.com on 2 Nov 2007 at 2:31

GoogleCodeExporter commented 8 years ago
can't repro anymore after options changes.

Original comment by alan...@gmail.com on 20 Mar 2008 at 4:32