mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 17:02:15 -07:00
Move button init
This commit is contained in:
parent
716bc00533
commit
60f3e6412b
1 changed files with 2 additions and 1 deletions
|
|
@ -118,6 +118,8 @@ GeneralSettingsPage::GeneralSettingsPage()
|
||||||
QPushButton *tokenDatabasePathButton = new QPushButton("...");
|
QPushButton *tokenDatabasePathButton = new QPushButton("...");
|
||||||
connect(tokenDatabasePathButton, SIGNAL(clicked()), this, SLOT(tokenDatabasePathButtonClicked()));
|
connect(tokenDatabasePathButton, SIGNAL(clicked()), this, SLOT(tokenDatabasePathButtonClicked()));
|
||||||
|
|
||||||
|
resetAllPathsButton = new QPushButton;
|
||||||
|
|
||||||
bool isPortable = settings.getIsPortableBuild();
|
bool isPortable = settings.getIsPortableBuild();
|
||||||
if (isPortable) {
|
if (isPortable) {
|
||||||
deckPathEdit->setEnabled(false);
|
deckPathEdit->setEnabled(false);
|
||||||
|
|
@ -134,7 +136,6 @@ GeneralSettingsPage::GeneralSettingsPage()
|
||||||
customCardDatabasePathButton->setVisible(false);
|
customCardDatabasePathButton->setVisible(false);
|
||||||
tokenDatabasePathButton->setVisible(false);
|
tokenDatabasePathButton->setVisible(false);
|
||||||
} else {
|
} else {
|
||||||
resetAllPathsButton = new QPushButton;
|
|
||||||
connect(resetAllPathsButton, SIGNAL(clicked()), this, SLOT(resetAllPathsClicked()));
|
connect(resetAllPathsButton, SIGNAL(clicked()), this, SLOT(resetAllPathsClicked()));
|
||||||
allPathsResetLabel = new QLabel(tr("All paths have been reset"));
|
allPathsResetLabel = new QLabel(tr("All paths have been reset"));
|
||||||
allPathsResetLabel->setVisible(false);
|
allPathsResetLabel->setVisible(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue