[main] set a minimum app size, do not try to open a file it no file arg given

This commit is contained in:
Jan Grewe 2021-01-05 12:06:58 +01:00
parent a62fa463a6
commit 4088b96861

View File

@ -10,6 +10,9 @@ def main():
args = parser.parse_args() args = parser.parse_args()
app = QApplication(sys.argv) app = QApplication(sys.argv)
window = NixView() window = NixView()
window.setMinimumWidth(800)
window.setMinimumHeight(600)
if len(args.file.strip()) > 0:
window.open_file(args.file) window.open_file(args.file)
window.show() window.show()
sys.exit(app.exec_()) sys.exit(app.exec_())