Skip to content

Commit

Permalink
last adjustments before review - dialog and code
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Nov 12, 2024
1 parent 0edb653 commit cf27787
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion Mergin/projects_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def create_project(self, project_name, project_dir, is_public, namespace):
if e.http_error == 409:
msg = f'Project named "{project_name}" already exists in the workspace "{namespace}".\nPlease try renaming the project.'
elif e.server_code == ErrorCode.ProjectsLimitHit.value:
print(e.server_response)
dlg = ProjectLimitHitDialog(e)
dlg.exec()
return False
Expand Down
14 changes: 10 additions & 4 deletions Mergin/ui/ui_project_limit_hit_dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>352</width>
<height>224</height>
<width>367</width>
<height>212</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -82,7 +82,7 @@
<item>
<widget class="QPushButton" name="cancel_btn">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
Expand All @@ -98,7 +98,7 @@
<bool>true</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
Expand Down Expand Up @@ -148,6 +148,12 @@ for the limit to reset.</string>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Used</string>
</property>
Expand Down

0 comments on commit cf27787

Please sign in to comment.