mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 12:15:27 +00:00
small fixes in window loading
This commit is contained in:
parent
ae66af1104
commit
6e9b7bc824
@ -23,8 +23,9 @@ Item{
|
||||
property var fonts_list: fontlist
|
||||
|
||||
onFont_indexChanged: {
|
||||
//Reload the window to avoid ugly glitches
|
||||
terminalwindowloader.source = "";
|
||||
currentfont.source = fontlist.get(font_index).source;
|
||||
currentfont.pixelSize = fontlist.get(font_index).pixelSize;
|
||||
terminalwindowloader.source = "TerminalWindow.qml";
|
||||
}
|
||||
|
||||
|
@ -204,6 +204,8 @@ ApplicationWindow{
|
||||
//FIXME: Ugly forced clear terminal at the beginning
|
||||
Component.onCompleted: {
|
||||
terminal.screen.sendKey("l", 76, 67108864);
|
||||
terminal.setTerminalHeight();
|
||||
terminal.setTerminalWidth();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -27,15 +27,13 @@
|
||||
import QtQuick 2.1
|
||||
import QtQuick.Window 2.0
|
||||
import QtQuick.Controls 1.0
|
||||
import QtGraphicalEffects 1.0
|
||||
|
||||
Item{
|
||||
ShaderSettings{
|
||||
id: shadersettings
|
||||
Component.onCompleted: terminalwindowloader.source = "TerminalWindow.qml"
|
||||
}
|
||||
|
||||
Loader{
|
||||
id: terminalwindowloader
|
||||
source: "TerminalWindow.qml"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user