Skip to content

Commit

Permalink
Don't hide status loggers when SoftLock is active
Browse files Browse the repository at this point in the history
  • Loading branch information
Rookiestyle committed Dec 21, 2022
1 parent fde3e5e commit 66a1fe5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/OptionsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public OptionsForm()
tabQuickUnlock.Text = PluginTranslate.OptionsQUSettings;
lQUMode.Text = PluginTranslate.OptionsQUMode;
lQUPINLength.Text = PluginTranslate.OptionsQUPINLength;
tbModeExplain.Lines = PluginTranslate.OptionsQUReqInfoDB.Split(new string[] { "\r\n", "\r", "\n" }, StringSplitOptions.None); ;
tbModeExplain.Lines = PluginTranslate.OptionsQUReqInfoDB.Split(new string[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
cbPINDBSpecific.Text = PluginTranslate.OptionsQUSettingsPerDB;
cbPINMode.Items.Clear();
cbPINMode.Items.AddRange(new string[] { PluginTranslate.OptionsQUModeEntry, PluginTranslate.OptionsQUModeDatabasePW });
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.2.1")]
[assembly: AssemblyFileVersion("3.2.1")]
[assembly: AssemblyVersion("3.2.2")]
[assembly: AssemblyFileVersion("3.2.2")]
4 changes: 3 additions & 1 deletion src/SoftLock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ private void Init(QuickUnlock qu)
private void OnWindowAdded(object sender, GwmWindowEventArgs e)
{
if (!m_SoftLocked) return;
if (LockAssistConfig.SL_ExcludeForms.Contains(e.Form.GetType().FullName.Replace("KeePass.Forms.", ""))) return;
string sFormname = e.Form.GetType().FullName;
if (e.Form is KeePassLib.Interfaces.IStatusLogger && sFormname.StartsWith("KeePass.Forms.")) return; //don't hide status dialogs
if (LockAssistConfig.SL_ExcludeForms.Contains(sFormname.Replace("KeePass.Forms.", ""))) return;

PluginDebug.AddInfo("Softlocked new window", e.Form.GetType().ToString());
m_dHiddenForms.Add(e.Form, new SLFormProperties(e.Form.Opacity));
Expand Down
2 changes: 1 addition & 1 deletion version.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:
LockAssist:3.2.1
LockAssist:3.2.2
LockAssist!de:5
LockAssist!pt:4
:

0 comments on commit 66a1fe5

Please sign in to comment.