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