Settings cleanup
This commit is contained in:
parent
172215b3cb
commit
e62bfe3949
@ -408,11 +408,8 @@ void MainWindow::bedcenter()
|
|||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
if(settings.value("printer/bedx").toInt()) x = settings.value("printer/bedx").toInt();
|
x = settings.value("printer/bedx", 200).toInt();
|
||||||
else x = 200;
|
y = settings.value("printer/bedy", 200).toInt();
|
||||||
|
|
||||||
if(settings.value("printer/bedy").toInt()) y = settings.value("printer/bedy").toInt();
|
|
||||||
else y = 200;
|
|
||||||
|
|
||||||
QString command = "G1 X" + QString::number(x/2) + "Y" + QString::number(y/2);
|
QString command = "G1 X" + QString::number(x/2) + "Y" + QString::number(y/2);
|
||||||
injectCommand(command);
|
injectCommand(command);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user