parent
89c4f04db4
commit
bd0af8b2cf
|
@ -90,6 +90,7 @@ callbacks["EnterLobby"] = (jsonData) => {
|
||||||
mainStack.pop();
|
mainStack.pop();
|
||||||
}
|
}
|
||||||
mainWindow.busy = false;
|
mainWindow.busy = false;
|
||||||
|
config.saveConf();
|
||||||
}
|
}
|
||||||
|
|
||||||
callbacks["EnterRoom"] = (jsonData) => {
|
callbacks["EnterRoom"] = (jsonData) => {
|
||||||
|
|
|
@ -198,6 +198,7 @@ Item {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
toast.show("Goodbye.");
|
toast.show("Goodbye.");
|
||||||
mainStack.pop();
|
mainStack.pop();
|
||||||
|
config.saveConf();
|
||||||
Backend.quitLobby();
|
Backend.quitLobby();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -388,7 +388,7 @@ RowLayout {
|
||||||
unSelectAll();
|
unSelectAll();
|
||||||
disableSkills();
|
disableSkills();
|
||||||
|
|
||||||
const cards = handcardAreaItem.cards;
|
let cards = handcardAreaItem.cards;
|
||||||
const toRemove = [];
|
const toRemove = [];
|
||||||
for (let c of cards) {
|
for (let c of cards) {
|
||||||
toRemove.push(c.cid);
|
toRemove.push(c.cid);
|
||||||
|
|
22
Fk/main.qml
22
Fk/main.qml
|
@ -224,13 +224,21 @@ Window {
|
||||||
title: realMainWin.title
|
title: realMainWin.title
|
||||||
informativeText: qsTr("Are you sure to exit?")
|
informativeText: qsTr("Are you sure to exit?")
|
||||||
buttons: MessageDialog.Ok | MessageDialog.Cancel
|
buttons: MessageDialog.Ok | MessageDialog.Cancel
|
||||||
onAccepted: {
|
onButtonClicked: function (button, role) {
|
||||||
mainWindow.closing = true;
|
switch (button) {
|
||||||
config.winWidth = width;
|
case MessageDialog.Ok: {
|
||||||
config.winHeight = height;
|
mainWindow.closing = true;
|
||||||
config.saveConf();
|
config.winWidth = width;
|
||||||
Backend.quitLobby(false);
|
config.winHeight = height;
|
||||||
realMainWin.close();
|
config.saveConf();
|
||||||
|
Backend.quitLobby(false);
|
||||||
|
realMainWin.close();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case MessageDialog.Cancel: {
|
||||||
|
exitMessageDialog.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue