do not initialize screens lazily as it doesn't make much sense
This commit is contained in:
@@ -42,7 +42,7 @@ using Global::MainHeight;
|
||||
using Global::MainStartY;
|
||||
using Global::myScreen;
|
||||
|
||||
MediaLibrary *myLibrary = new MediaLibrary;
|
||||
MediaLibrary *myLibrary;
|
||||
|
||||
namespace {//
|
||||
|
||||
@@ -112,7 +112,7 @@ public:
|
||||
|
||||
}
|
||||
|
||||
void MediaLibrary::init()
|
||||
MediaLibrary::MediaLibrary()
|
||||
{
|
||||
hasTwoColumns = 0;
|
||||
itsLeftColWidth = COLS/3-1;
|
||||
@@ -146,7 +146,6 @@ void MediaLibrary::init()
|
||||
Songs->setItemDisplayer(std::bind(Display::Songs, _1, this, Config.song_library_format));
|
||||
|
||||
w = Tags;
|
||||
isInitialized = 1;
|
||||
}
|
||||
|
||||
void MediaLibrary::resize()
|
||||
@@ -228,9 +227,6 @@ void MediaLibrary::switchTo()
|
||||
}
|
||||
}
|
||||
|
||||
if (!isInitialized)
|
||||
init();
|
||||
|
||||
if (myLockedScreen)
|
||||
updateInactiveScreen(this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user