mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-02 04:52:32 +00:00
Added the ability to disable window title updates.
This commit is contained in:
parent
aefb02ba3c
commit
6972a1df47
@ -128,7 +128,7 @@ void MainLayout::OnLayout() {
|
||||
if (this->library->Indexer()->GetState() == IIndexer::StateIndexing) {
|
||||
size_t cx = this->GetContentWidth();
|
||||
this->SetPadding(1, 0, 0, 0);
|
||||
this->syncing->MoveAndResize(0, 0, cx, 1);
|
||||
this->syncing->MoveAndResize(0, 0, (int) cx, 1);
|
||||
this->syncing->Show();
|
||||
|
||||
if (this->syncUpdateCount == 0) {
|
||||
@ -234,7 +234,7 @@ void MainLayout::OnIndexerFinished(int count) {
|
||||
}
|
||||
|
||||
void MainLayout::OnTrackChanged(size_t index, musik::core::TrackPtr track) {
|
||||
if (!track) {
|
||||
if (prefs->GetBool(cube::prefs::keys::DisableWindowTitleUpdates, false) || !track) {
|
||||
App::Instance().SetTitle("musikcube");
|
||||
}
|
||||
else {
|
||||
|
@ -118,6 +118,7 @@ static inline std::shared_ptr<ISchema> AdvancedSettingsSchema() {
|
||||
#endif
|
||||
schema->AddBool(cube::prefs::keys::AutoHideCommandBar, false);
|
||||
schema->AddBool(cube::prefs::keys::DisableRatingColumn, false);
|
||||
schema->AddBool(cube::prefs::keys::DisableWindowTitleUpdates, false);
|
||||
schema->AddString(cube::prefs::keys::RatingPositiveChar, kFilledStar.c_str());
|
||||
schema->AddString(cube::prefs::keys::RatingNegativeChar, kEmptyStar.c_str());
|
||||
schema->AddString(core::prefs::keys::AuddioApiToken, "");
|
||||
|
@ -58,6 +58,7 @@ namespace musik { namespace cube { namespace prefs {
|
||||
const std::string keys::RatingNegativeChar = "RatingNegativeChar";
|
||||
const std::string keys::AutoHideCommandBar = "AutoHideCommandBar";
|
||||
const std::string keys::DisableRatingColumn = "DisableRatingColumn";
|
||||
const std::string keys::DisableWindowTitleUpdates = "DisableWindowTitleUpdates";
|
||||
const std::string keys::AppQuitKey = "AppQuitKey";
|
||||
|
||||
} } }
|
||||
|
@ -60,6 +60,7 @@ namespace musik { namespace cube { namespace prefs {
|
||||
extern const std::string RatingNegativeChar;
|
||||
extern const std::string AutoHideCommandBar;
|
||||
extern const std::string DisableRatingColumn;
|
||||
extern const std::string DisableWindowTitleUpdates;
|
||||
extern const std::string AppQuitKey;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user