Merge pull request #2331 from tong/fix-background-mode-open-build-dir

Do not open build directory in background mode
This commit is contained in:
Lubos Lenco 2021-09-11 13:49:20 +02:00 committed by GitHub
commit c398c1181e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -641,7 +641,7 @@ def build_success():
project_path = files_path + '-build'
print('Exported makefiles to ' + project_path)
if arm.utils.get_arm_preferences().open_build_directory:
if not bpy.app.background and arm.utils.get_arm_preferences().open_build_directory:
arm.utils.open_folder(project_path)
# Android build APK