[MWB]Update the service's path on a new install (#27361)

* [MWB]Update service path between installs

* Show only the new message forcibly
This commit is contained in:
Jaime Bernardo
2023-07-11 21:14:47 +01:00
committed by GitHub
parent 394c050a9d
commit 4e9f4e57db
4 changed files with 61 additions and 40 deletions

View File

@@ -735,7 +735,7 @@ namespace MouseWithoutBorders
SendPackage(src, PackageType.ClipboardCapture);
}
internal static void ShowToolTip(string tip, int timeOutInMilliseconds = 5000, ToolTipIcon icon = ToolTipIcon.Info, bool showBalloonTip = true)
internal static void ShowToolTip(string tip, int timeOutInMilliseconds = 5000, ToolTipIcon icon = ToolTipIcon.Info, bool showBalloonTip = true, bool forceEvenIfHidingOldUI = false)
{
if (!Common.RunOnLogonDesktop && !Common.RunOnScrSaverDesktop)
{
@@ -752,7 +752,7 @@ namespace MouseWithoutBorders
{
if (MainForm != null)
{
MainForm.ShowToolTip(tip, timeOutInMilliseconds);
MainForm.ShowToolTip(tip, timeOutInMilliseconds, forceEvenIfHidingOldUI: forceEvenIfHidingOldUI);
}
else
{

View File

@@ -46,6 +46,8 @@ namespace MouseWithoutBorders.Class
private static readonly string ServiceModeArg = "UseService";
public static bool ShowServiceModeErrorTooltip;
[STAThread]
private static void Main()
{
@@ -98,6 +100,7 @@ namespace MouseWithoutBorders.Class
{
Common.Log("Couldn't start the service. Will try to continue as not a service.");
Common.Log(ex);
ShowServiceModeErrorTooltip = true;
serviceMode = false;
Setting.Values.UseService = false;
}