-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using a different configuration file name from QT #398
Using a different configuration file name from QT #398
Conversation
src/qml/guiconstants.h
Outdated
|
||
using namespace std::chrono_literals; | ||
|
||
/* A delay between model updates */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these other constants needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK. Wonder if we need all of the other constants with the new application?
I haven't investigated it yet, the main purpose for this change was to get the config file separate from QT and I clarified at the top that we could do the cleanup later, in case there are features that we don't have/ use in QML at the moment but we'll need them later, but I'm open, we could do the cleanup now and bring the constants back as soon as we need them (if we ever need them). |
I tried deleting everything else from that file and the only constant being used is DEFAULT_SPLASHSCREEN. I think we should only keep the constants we are using, I don't think its a good idea to add lines of code that aren't used. so something like
|
I think not even that one, all command line args described in I'll update the file soon. Thanks! |
1865548
to
54a1f15
Compare
Updates:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 54a1f15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK 54a1f15 on Ubuntu 22.04
does it need to be rebased?
Separating guiconstants.h file from QT, copying it from src/qt to src/qml, removing all unused constants so far and updating QAPP_APP_NAME_* constants values so both QT and QML gui apps don't clash with each other trying to persist same or different settings (e.g. configuration file for QT on signet will be still named as Bitcoin-Qt-signet.conf, as of today, while QML will start using a separate file named BitcoinCore-App-signet.conf). This could be a temporary fix so instances from both QT and QML gui apps don't interfere between them during QML development. This change will be transparent for both QT app and users. Co-authored-by: Johnny <[email protected]>
54a1f15
to
5be1e52
Compare
Updates:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tack 5be1e52
This was overlooked in bitcoin-core#398.
At the moment both QT and QML gui apps are using the same naming convention for configuration files (
Bitcoin*.conf
), so separatingguiconstants.h
file from QT, copying it fromsrc/qt
tosrc/qml
and updatingQAPP_APP_NAME_*
constants values will avoid them clashing with each other trying to persist/ read same or different settings (e.g. configuration file for QT on signet will be still named asBitcoin-Qt-signet.conf
, as of today, while QML will start using a separate file namedBitcoin-Qml-signet.conf
- before this fix, currently sometimes a user can get a warning on reading incorrect settings or values:QVariant::load: unknown user type with name BitcoinUnits::Unit.
).This could be a temporary fix (? - gui constants file contents has been cleaned up as suggested) so instances from both QT and QML gui apps don't interfere between them during QML development. This change will be transparent for both QT gui app and users.
Sample of a separate QT config file on
signet
(Bitcoin-Qt-signet.conf
).Sample of a separate QML config file on
signet
(Bitcoin-Qml-signet.conf
).