Skip to content

Commit

Permalink
Merge pull request #12577 from nvaccess/beta
Browse files Browse the repository at this point in the history
Merge beta back to master
  • Loading branch information
feerrenrut authored Jun 23, 2021
2 parents 77eb892 + 88857c8 commit b1a5293
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion source/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,12 @@ def restartUnsafely():
- Remove icons (systray)
- Saving settings
"""

log.info("Restarting unsafely")
import subprocess
# Unlike a normal restart, see L{restart}:
# - if addons are disabled, leave them disabled
# - if debug logging is set, leave it set.
# The new instance should operate in the same way (as much as possible) as the old instance.
for paramToRemove in ("--ease-of-access"):
try:
sys.argv.remove(paramToRemove)
Expand Down
2 changes: 0 additions & 2 deletions source/gui/installerGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def doInstall(
if startAfterInstall:
newNVDA = core.NewNVDAInstance(
filePath=os.path.join(installer.defaultInstallPath, 'nvda.exe'),
parameters=f"--log-level={log.level}"
)
if not core.triggerNVDAExit(newNVDA):
log.error("NVDA already in process of exiting, this indicates a logic error.")
Expand Down Expand Up @@ -473,7 +472,6 @@ def doCreatePortable(portableDirectory,copyUserConfig=False,silent=False,startAf
if startAfterCreate:
newNVDA = core.NewNVDAInstance(
filePath=os.path.join(portableDirectory, 'nvda.exe'),
parameters=f"--log-level={log.level}"
)
if not core.triggerNVDAExit(newNVDA):
log.error("NVDA already in process of exiting, this indicates a logic error.")
1 change: 0 additions & 1 deletion source/updateCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ def _executeUpdate(destPath):
)
else:
executeParams = u"--launcher"
executeParams += f"--log-level={log.level}"
# #4475: ensure that the new process shows its first window, by providing SW_SHOWNORMAL
if not core.triggerNVDAExit(core.NewNVDAInstance(destPath, executeParams)):
log.error("NVDA already in process of exiting, this indicates a logic error.")
Expand Down

0 comments on commit b1a5293

Please sign in to comment.