[main] set a minimum app size, do not try to open a file it no file arg given
This commit is contained in:
parent
a62fa463a6
commit
4088b96861
@ -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_())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user