Skip to content

Commit

Permalink
only show diff if there are any diffs in layers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Caha committed Mar 14, 2024
1 parent 8a0b40e commit 1766de2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Mergin/project_history_dock.py
Expand Up @@ -487,7 +487,10 @@ def show_diff_viewer(self, version, msg=""):
return

dlg = DiffViewerDialog(version)
dlg.exec_()
if dlg.diff_layers:
dlg.exec_()
else:
QMessageBox.information(None, "Mergin", "No changes to the current project layers for this version.")

def download_version(self):
"""Download project files at the specific version"""
Expand Down

0 comments on commit 1766de2

Please sign in to comment.