Do not open build directory in background mode

This commit is contained in:
tong 2021-09-07 10:15:11 +02:00
parent 55cfead084
commit 667e73c867

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