Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensuring the project is open after is packaged #616

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion qfieldsync/gui/package_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
from libqfieldsync.project import ProjectConfiguration
from libqfieldsync.project_checker import ProjectChecker
from libqfieldsync.utils.file_utils import fileparts
from libqfieldsync.utils.qgis import get_project_title
from libqfieldsync.utils.qgis import get_project_title, open_project
from qgis.core import Qgis, QgsApplication, QgsProject
from qgis.PyQt.QtCore import QDir, Qt, QUrl
from qgis.PyQt.QtGui import QIcon
Expand Down Expand Up @@ -189,6 +189,7 @@ def package_project(self):
try:
QApplication.setOverrideCursor(Qt.WaitCursor)
offline_convertor.convert()
open_project(self.project.fileName())
self.do_post_offline_convert_action(True)
except Exception as err:
self.do_post_offline_convert_action(False)
Expand Down
Loading