Skip to content

Commit

Permalink
fix button width on high-dpi screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriechi committed Jan 21, 2021
1 parent 38e48d2 commit 998dc07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog of Cura-DuetRRFPlugin

## v1.2.1: next
* fix button width on high-dpi screens

## v1.2.0: 2021-01-10
* store settings in local preferences instead of sharable metadata
* use managed HttpRequestManager instead of low-level QNetworkAccessManager
Expand Down
4 changes: 2 additions & 2 deletions resources/qml/DuetRRFAction.qml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Cura.MachineAction
Button {
id: saveButton;
text: catalog.i18nc("@action:button", "Save Config");
width: 100;
width: screenScaleFactor * 100;
onClicked: {
manager.saveConfig(urlField.text, duet_passwordField.text, http_userField.text, http_passwordField.text);
actionDialog.reject();
Expand All @@ -103,7 +103,7 @@ Cura.MachineAction
Button {
id: deleteButton;
text: catalog.i18nc("@action:button", "Delete Config");
width: 100;
width: screenScaleFactor * 100;
onClicked: {
manager.deleteConfig();
actionDialog.reject();
Expand Down

0 comments on commit 998dc07

Please sign in to comment.