mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -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("...");
|
||||
connect(tokenDatabasePathButton, SIGNAL(clicked()), this, SLOT(tokenDatabasePathButtonClicked()));
|
||||
|
||||
resetAllPathsButton = new QPushButton;
|
||||
|
||||
bool isPortable = settings.getIsPortableBuild();
|
||||
if (isPortable) {
|
||||
deckPathEdit->setEnabled(false);
|
||||
|
|
@ -134,7 +136,6 @@ GeneralSettingsPage::GeneralSettingsPage()
|
|||
customCardDatabasePathButton->setVisible(false);
|
||||
tokenDatabasePathButton->setVisible(false);
|
||||
} else {
|
||||
resetAllPathsButton = new QPushButton;
|
||||
connect(resetAllPathsButton, SIGNAL(clicked()), this, SLOT(resetAllPathsClicked()));
|
||||
allPathsResetLabel = new QLabel(tr("All paths have been reset"));
|
||||
allPathsResetLabel->setVisible(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue