[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,7 +10,10 @@ def main():
args = parser.parse_args()
app = QApplication(sys.argv)
window = NixView()
window.open_file(args.file)
window.setMinimumWidth(800)
window.setMinimumHeight(600)
if len(args.file.strip()) > 0:
window.open_file(args.file)
window.show()
sys.exit(app.exec_())