1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2026-02-08 00:32:27 +00:00

Add multiple windows handling.

This commit is contained in:
Filippo Scognamiglio
2026-01-04 23:03:20 +01:00
parent 11ad932965
commit 267b39bc9d
10 changed files with 219 additions and 168 deletions

View File

@@ -42,7 +42,6 @@ Item{
property size terminalSize: kterminal.terminalSize
property size fontMetrics: kterminal.fontMetrics
property bool sessionStarted: false
// Manage copy and paste
Connections {
@@ -169,12 +168,6 @@ Item{
}
function startSession() {
if (terminalContainer.sessionStarted)
return
terminalContainer.sessionStarted = true
appSettings.initializedSettings.disconnect(startSession);
// Retrieve the variable set in main.cpp if arguments are passed.
if (defaultCmd) {
ksession.setShellProgram(defaultCmd);
@@ -196,10 +189,8 @@ Item{
}
Component.onCompleted: {
appSettings.terminalFontChanged.connect(handleFontChanged);
appSettings.initializedSettings.connect(startSession);
if (appSettings.settingsInitialized)
startSession();
appSettings.updateFont()
startSession();
}
}