RomBrowserWidget: move init bool inside function

This commit is contained in:
Rosalie Wanders committed 2021-01-04 14:08:54 +01:00
1 parent 606b46bebd
commit 8a515a63a8
1 file changed
+2 -2
@@ -180,10 +180,10 @@ void RomBrowserWidget::rom_Searcher_Init(void)
&RomBrowserWidget::on_RomBrowserThread_Finished);
}
bool init = false;
void RomBrowserWidget::rom_List_Fill(QString directory)
{
static bool init = false;
if (!init)
{
this->rom_Searcher_Init();