mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Added a UI option to always play nonlands onto the stack
Previously this behavior only occured for instants and sorceries Woops, missed a file Missed some parentheses
This commit is contained in:
parent
1accaffb70
commit
2727781c0e
5 changed files with 18 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ SettingsCache::SettingsCache()
|
|||
mainWindowGeometry = settings->value("interface/main_window_geometry").toByteArray();
|
||||
picDownload = settings->value("personal/picturedownload", true).toBool();
|
||||
doubleClickToPlay = settings->value("interface/doubleclicktoplay", true).toBool();
|
||||
playToStack = settings->value("interface/playtostack", false).toBool();
|
||||
cardInfoMinimized = settings->value("interface/cardinfominimized", 0).toInt();
|
||||
tabGameSplitterSizes = settings->value("interface/tabgame_splittersizes").toByteArray();
|
||||
displayCardNames = settings->value("cards/displaycardnames", true).toBool();
|
||||
|
|
@ -129,6 +130,12 @@ void SettingsCache::setDoubleClickToPlay(int _doubleClickToPlay)
|
|||
settings->setValue("interface/doubleclicktoplay", doubleClickToPlay);
|
||||
}
|
||||
|
||||
void SettingsCache::setPlayToStack(int _playToStack)
|
||||
{
|
||||
playToStack = _playToStack;
|
||||
settings->setValue("interface/playtostack", playToStack);
|
||||
}
|
||||
|
||||
void SettingsCache::setCardInfoMinimized(int _cardInfoMinimized)
|
||||
{
|
||||
cardInfoMinimized = _cardInfoMinimized;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue