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);
|
||||||
|
|
10
Fk/main.qml
10
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) {
|
||||||
|
switch (button) {
|
||||||
|
case MessageDialog.Ok: {
|
||||||
mainWindow.closing = true;
|
mainWindow.closing = true;
|
||||||
config.winWidth = width;
|
config.winWidth = width;
|
||||||
config.winHeight = height;
|
config.winHeight = height;
|
||||||
config.saveConf();
|
config.saveConf();
|
||||||
Backend.quitLobby(false);
|
Backend.quitLobby(false);
|
||||||
realMainWin.close();
|
realMainWin.close();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case MessageDialog.Cancel: {
|
||||||
|
exitMessageDialog.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue