Merge pull request #22 from toudi/center-mainwindow-fix
fix for issue #13
This commit is contained in:
commit
63a1ab07c1
@ -15,7 +15,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
* along with Calamares. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
#include <QDesktopWidget>
|
||||||
#include "CalamaresApplication.h"
|
#include "CalamaresApplication.h"
|
||||||
|
|
||||||
#include "CalamaresWindow.h"
|
#include "CalamaresWindow.h"
|
||||||
@ -193,6 +193,9 @@ CalamaresApplication::onPluginsReady()
|
|||||||
this, &CalamaresApplication::startPhase );
|
this, &CalamaresApplication::startPhase );
|
||||||
|
|
||||||
startPhase( Calamares::Prepare );
|
startPhase( Calamares::Prepare );
|
||||||
|
m_mainwindow->move(
|
||||||
|
this->desktop()->availableGeometry().center() - m_mainwindow->rect().center()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user