From 85a6d8493457a30334acff0c2e430a30d949226a Mon Sep 17 00:00:00 2001 From: Nils <> Date: Sun, 3 Feb 2019 02:31:26 +0100 Subject: [PATCH] better desktop and template Former-commit-id: 887ba0c14884b3495e0c111e462ec31ca81624bb --- qtgui/mainwindow.py | 3 +-- template | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qtgui/mainwindow.py b/qtgui/mainwindow.py index 432b428..45bfbfa 100644 --- a/qtgui/mainwindow.py +++ b/qtgui/mainwindow.py @@ -147,8 +147,7 @@ class MainWindow(TemplateMainWindow): #There is always a track. Forcing that to be active is better than having to hide all the pattern widgets, or to disable them. #However, we need the engine to be ready. self.chooseCurrentTrack(api.session.data.tracks[0].export()) #By Grabthar's hammer, by the suns of Worvan, what a hack! #TODO: Access to the sessions data structure directly instead of api. Not good. Getter function or api @property is cleaner. - - self.setWindowState(QtCore.Qt.WindowMaximized) + self.ui.gridView.horizontalScrollBar().setSliderPosition(0) self.ui.gridView.verticalScrollBar().setSliderPosition(0) diff --git a/template b/template index 18ec54b..8b26e40 160000 --- a/template +++ b/template @@ -1 +1 @@ -Subproject commit 18ec54b47a7d033a9a4597d414b5840f9ae5e4b0 +Subproject commit 8b26e40e60b5c8878fde75ed407cf066898d04d9