Skip to content

Commit

Permalink
Minor commit to remove an old code that led to a crash in the new usa…
Browse files Browse the repository at this point in the history
…ge of user list view (preflet), other minor edits to attempt fix for known bug.
  • Loading branch information
cafeina committed Aug 1, 2024
1 parent f2625c2 commit 23579d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/application/mBackgroundView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ int mBackgroundView::CallSetBackgroundImage(void* data)
void mBackgroundView::SetBackgroundImage(void* data)
{
BStringList* localList = (BStringList*)data;
BBitmap* nextimage = nullptr, *releaseimage = nullptr;

while(!shouldExit) {
BBitmap* nextimage = nullptr, *releaseimage = nullptr;
for(int i = 0; i < localList->CountStrings(); i++) {
nextimage = BTranslationUtils::GetBitmap(localList->StringAt(i));
nextimage = BTranslationUtils::GetBitmap(localList->StringAt(i).String());

if(nextimage != NULL) {
snooze(multiplier * 1000000);
Expand Down
8 changes: 5 additions & 3 deletions src/application/mSystemInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,13 @@ void mSystemInfo::Update()

LockLooper();

memmax->SetText(fStrMaxMem);
memused->SetText(fStrUsedMem);
runtime->SetText(fStrRunningTime);
memmax->SetText(fStrMaxMem.String());
memused->SetText(fStrUsedMem.String());
runtime->SetText(fStrRunningTime.String());

UnlockLooper();
LockLooper();
UnlockLooper();
}

BStringView* mSystemInfo::AddTitle(const char* title)
Expand Down
2 changes: 1 addition & 1 deletion src/preflet/mWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ void mWindow::UpdateStrings_Thread()
LockLooper();

mAddUserName->SetText(settings->DefaultUser());
((BStringView*)mListOfUsers->ItemAt(0))->SetText(settings->DefaultUser());
// ((BStringView*)mListOfUsers->ItemAt(0))->SetText(settings->DefaultUser());

settings->BackgroundColor() = mCCBgColor->ValueAsColor();
settings->SetBackgroundImageFolderPath(mTextControlmPathToImageFolder->Text());
Expand Down

0 comments on commit 23579d1

Please sign in to comment.