mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 09:03:44 -07:00
Fixed configuration issue, somehow the default value was not comma separated. Also added a fix for old values.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2219 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
e36be11668
commit
7bf586896d
1 changed files with 17 additions and 3 deletions
|
@ -166,9 +166,9 @@ namespace GreenshotPlugin.Core {
|
||||||
[IniProperty("ThumnailPreview", Description="Enable/disable thumbnail previews", DefaultValue="True")]
|
[IniProperty("ThumnailPreview", Description="Enable/disable thumbnail previews", DefaultValue="True")]
|
||||||
public bool ThumnailPreview;
|
public bool ThumnailPreview;
|
||||||
|
|
||||||
[IniProperty("NoGDICaptureForProduct", Description="List of products for which GDI capturing doesn't work.", DefaultValue="IntelliJ IDEA")]
|
[IniProperty("NoGDICaptureForProduct", Description="List of products for which GDI capturing doesn't work.", DefaultValue="IntelliJ,IDEA")]
|
||||||
public List<string> NoGDICaptureForProduct;
|
public List<string> NoGDICaptureForProduct;
|
||||||
[IniProperty("NoDWMCaptureForProduct", Description="List of products for which DWM capturing doesn't work.", DefaultValue="Citrix ICA Client")]
|
[IniProperty("NoDWMCaptureForProduct", Description="List of products for which DWM capturing doesn't work.", DefaultValue="Citrix,ICA,Client")]
|
||||||
public List<string> NoDWMCaptureForProduct;
|
public List<string> NoDWMCaptureForProduct;
|
||||||
|
|
||||||
[IniProperty("OptimizeForRDP", Description="Make some optimizations for usage with remote desktop", DefaultValue="False")]
|
[IniProperty("OptimizeForRDP", Description="Make some optimizations for usage with remote desktop", DefaultValue="False")]
|
||||||
|
@ -320,11 +320,25 @@ namespace GreenshotPlugin.Core {
|
||||||
|
|
||||||
// Make sure the lists are lowercase, to speedup the check
|
// Make sure the lists are lowercase, to speedup the check
|
||||||
if (NoGDICaptureForProduct != null) {
|
if (NoGDICaptureForProduct != null) {
|
||||||
for(int i=0; i< NoGDICaptureForProduct.Count; i++) {
|
// Fix error in configuration
|
||||||
|
if (NoGDICaptureForProduct.Count == 1) {
|
||||||
|
if ("intellij idea".Equals(NoGDICaptureForProduct[0])) {
|
||||||
|
NoGDICaptureForProduct[0] = "intellij,idea";
|
||||||
|
this.IsDirty = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (int i = 0; i < NoGDICaptureForProduct.Count; i++) {
|
||||||
NoGDICaptureForProduct[i] = NoGDICaptureForProduct[i].ToLower();
|
NoGDICaptureForProduct[i] = NoGDICaptureForProduct[i].ToLower();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (NoDWMCaptureForProduct != null) {
|
if (NoDWMCaptureForProduct != null) {
|
||||||
|
// Fix error in configuration
|
||||||
|
if (NoDWMCaptureForProduct.Count == 1) {
|
||||||
|
if ("citrix ica client".Equals(NoDWMCaptureForProduct[0])) {
|
||||||
|
NoDWMCaptureForProduct[0] = "citrix,ica,client";
|
||||||
|
this.IsDirty = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
for(int i=0; i< NoDWMCaptureForProduct.Count; i++) {
|
for(int i=0; i< NoDWMCaptureForProduct.Count; i++) {
|
||||||
NoDWMCaptureForProduct[i] = NoDWMCaptureForProduct[i].ToLower();
|
NoDWMCaptureForProduct[i] = NoDWMCaptureForProduct[i].ToLower();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue