Storing plugin settings

27 views
Skip to first unread message

Pedro Neves

unread,
Mar 4, 2015, 8:37:44 AM3/4/15
to pgina...@googlegroups.com
Hello,

Im trying to store some of my plugin settings using pGinaDynamicSettings but its not working. 
using (Process me = Process.GetCurrentProcess())
            {
                pGinaSettings = new pGinaDynamicSettings(Tools.SimpleUuid);
                pGinaSettings.SetDefault("ShowDescription", true);
                pGinaSettings.setDefault("onlyBluetoothLogin", true);
            }
When i build the dll with the onlyBluetoothLogin line, the plugin just wont show up in plugin list. But when i delete it, it shows again.

What am i doing wrong?

Thanks in advance!

Pedro Neves

unread,
Mar 4, 2015, 8:54:26 AM3/4/15
to pgina...@googlegroups.com
Also, i tried writing directly to registry myself and then get the data using Settings.Store.variable and succeed. However, when i try to change the value instead of just accessing it, nothing happens.
So, this works:
chkOnlyBluetooth.Checked = Settings.Store.onlyBluetoothLogin;

This does not:
Settings.Store.onlyBluetoothLogin = chkOnlyBluetooth.Checked;


 Ideas?

Hans Wurst

unread,
Mar 10, 2015, 3:23:01 AM3/10/15
to pgina...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages