Commit f8e63572 authored by Mall, Anon's avatar Mall, Anon
Browse files

Merge branch 'master' of gitlab.dai-labor.de:30223/desk-control

parents 25103676 0629ef2f
......@@ -33,8 +33,8 @@ Controller::Controller(Config& conf):
{
m_offset = stoi(m_config.get("offset", "0"));
m_minHeight = stoi(m_config.get("min_height", std::to_string(MIN_HEIGHT)));
m_maxHeight = stoi(m_config.get("max_height", std::to_string(MAX_HEIGHT)));
m_minHeight = stoi(m_config.get("min_height", std::to_string(MIN_HEIGHT))) + m_offset;
m_maxHeight = stoi(m_config.get("max_height", std::to_string(MAX_HEIGHT))) + m_offset;
}
void
......@@ -54,8 +54,8 @@ Controller::setOffset(int offset)
{
m_config.set("offset", offset);
m_maxHeight = m_offset + MAX_HEIGHT;
m_minHeight = m_offset + MIN_HEIGHT;
m_minHeight = stoi(m_config.get("min_height", std::to_string(MIN_HEIGHT))) + m_offset;
m_maxHeight = stoi(m_config.get("max_height", std::to_string(MAX_HEIGHT))) + m_offset;
}
int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment