Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ int main(int argc, char *argv[])
engine.rootContext()->setContextProperty("defaultCmdArgs", commandArgs);

engine.rootContext()->setContextProperty("workdir", getNamedArgument(args, "--workdir", QDir::currentPath()));
engine.rootContext()->setContextProperty("startFullscreen", args.contains("--fullscreen"));
engine.rootContext()->setContextProperty("fileIO", &fileIO);

// Manage import paths for Linux and OSX.
Expand Down
8 changes: 2 additions & 6 deletions app/qml/TerminalWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,12 @@ ApplicationWindow {
height: 768

// Show the window once it is ready.
Component.onCompleted: {
visible = true
}
Component.onCompleted: visibility = (fullscreen ? Window.FullScreen : Window.Windowed)

minimumWidth: 320
minimumHeight: 240

visible: false

property bool fullscreen: false
property bool fullscreen: startFullscreen
onFullscreenChanged: visibility = (fullscreen ? Window.FullScreen : Window.Windowed)

menuBar: WindowMenu { }
Expand Down