Skip to content

Commit

Permalink
Do not try to install the scheduled task if autolaunch is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
samhocevar committed Jun 4, 2021
1 parent 67e47cf commit 6b00855
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wincompose/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ static void Main(string[] args)
// Try to install the Task Scheduler entry. The best time for this is
// just after installation, when the installer launches us with elevated
// privileges.
SchTasks.InstallTask("WinCompose");
if (!from_task && Settings.AutoLaunch.Value)
SchTasks.InstallTask("WinCompose");

Settings.LoadSequences();
Metadata.LoadDB();
Expand Down

0 comments on commit 6b00855

Please sign in to comment.