mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Changed Iniconfig framework to static, this makes it even easier to use.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@816 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
b68fa2e0ff
commit
847556570b
1 changed files with 3 additions and 3 deletions
|
@ -70,9 +70,9 @@ namespace GreenshotOCR {
|
|||
}
|
||||
|
||||
// Load configuration
|
||||
config = IniConfig.GetInstance().GetSection<OCRConfiguration>();
|
||||
config = IniConfig.GetIniSection<OCRConfiguration>();
|
||||
if (config.IsDirty) {
|
||||
IniConfig.GetInstance().Save();
|
||||
IniConfig.Save();
|
||||
}
|
||||
this.host.RegisterHotKey(3, 0x2C, new HotKeyHandler(MyHotkeyHandler));
|
||||
|
||||
|
@ -115,7 +115,7 @@ namespace GreenshotOCR {
|
|||
SettingsForm settingsForm = new SettingsForm(GetLanguages(), config);
|
||||
DialogResult result = settingsForm.ShowDialog();
|
||||
if (result == DialogResult.OK) {
|
||||
IniConfig.GetInstance().Save();
|
||||
IniConfig.Save();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue