Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
- Mono: Color text in example textbox
- Mono: Try opening debugfiles with xdg-open as fallback
  • Loading branch information
Rookiestyle committed Jun 4, 2020
1 parent 2667c99 commit 5becef1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/ColoredPassword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ private void OptionsForm_Shown(object sender, EventArgs e)
o.cbColorEntryView.Checked = ColorConfig.ColorEntryView;
o.cbColorEntryViewKeepBackgroundColor.Checked = ColorConfig.ListViewKeepBackgroundColor;
o.lError.Visible = !ColoredPasswordExt.OverridePossible;
o.ctbExample.ColorText();
ColorConfig.Testmode = true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Options.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public partial class Options : UserControl
public Options()
{
InitializeComponent();
ctbExample.ColorText();
bForeColorDefault.Text = string.Empty;
bBackColorDefault.Text = string.Empty;
bForeColorLower.Text = string.Empty;
Expand Down
17 changes: 16 additions & 1 deletion src/PluginTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,22 @@ public static void SaveOrShow()
if (m_DebugEntries.Count == 0) return;
SaveDebugMessages();
if (AutoOpen || (AskOpen && Tools.AskYesNo("DebugFile: " + DebugFile + "\n\nOpen debug file?") == DialogResult.Yes))
System.Diagnostics.Process.Start(DebugFile);
{
try
{
System.Diagnostics.Process.Start(DebugFile);
}
catch
{
if (KeePassLib.Native.NativeLib.IsUnix()) //The above is broken on mono
{
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
psi.Arguments = DebugFile;
psi.FileName = "xdg-open";
System.Diagnostics.Process.Start(psi);
}
}
}
}

private static System.Xml.XmlWriter m_xw = null;
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("0.7")]
[assembly: AssemblyFileVersion("0.7")]
[assembly: AssemblyVersion("0.7.1")]
[assembly: AssemblyFileVersion("0.7.1")]
2 changes: 1 addition & 1 deletion version.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:
ColoredPassword:0.7
ColoredPassword:0.7.1
ColoredPassword!de:4
ColoredPassword!pl:2
ColoredPassword!ru:2
Expand Down

0 comments on commit 5becef1

Please sign in to comment.