Remove tray functionality from Partner App.
This commit is contained in:
@@ -208,7 +208,7 @@ namespace BodyshopPartner.ViewModels
|
||||
if (string.IsNullOrEmpty(SettingsSelectedShopUuid))
|
||||
{
|
||||
ActiveShop = ShopData[0] ?? null;
|
||||
Properties.Settings.Default.LastSelectedShop = ShopData[0].Id ?? null;
|
||||
Properties.Settings.Default.LastSelectedShop = ShopData[0]?.Id ?? null;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
else
|
||||
@@ -262,33 +262,7 @@ namespace BodyshopPartner.ViewModels
|
||||
public async Task TestGql()
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
logger.Debug("Attempting to add HTTP Exclusion for web-server");
|
||||
System.Diagnostics.Process process = new System.Diagnostics.Process();
|
||||
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
|
||||
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
|
||||
startInfo.FileName = "cmd.exe";
|
||||
startInfo.Arguments = "add netsh http add urlacl url=http://+:1337/ user=\"Everyone\"";
|
||||
startInfo.Verb = "runas";
|
||||
process.StartInfo = startInfo;
|
||||
bool successful = process.Start();
|
||||
if (successful)
|
||||
{
|
||||
logger.Debug("Successfully added exception.");
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.Fatal("Unable to set exception for http port");
|
||||
AddHttpStatus("Unable to add exception for the port! Please run as an administrator.");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception Ex)
|
||||
{
|
||||
logger.Fatal("Unable to set exception for http port", Ex.ToString());
|
||||
}
|
||||
Utils.SquirrelAwareHelper.AddHttpExcetion();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user