GUI: Fix Options' Cloud tab scrollbar issue

Calling reflowLayout() not only updates the layout (as setupCloudTab()
was already doing), but also recalculates scrollbar. The issue was that
old layout didn't need a scrollbar, but updated layout did. But,
ScrollContainer was not notified, and thus scrollbar didn't appear
(until user tried to reselect the Storage via popup).
This commit is contained in:
Alexander Tkachev 2019-08-04 04:43:53 +07:00
parent 1c0b697a59
commit 2c31e6cbe5

View File

@ -2439,8 +2439,7 @@ void GlobalOptionsDialog::handleTickle() {
#ifdef USE_CLOUD
#ifdef USE_LIBCURL
if (_redrawCloudTab) {
setupCloudTab();
g_gui.scheduleTopDialogRedraw();
reflowLayout(); // recalculates scrollbar as well
_redrawCloudTab = false;
}
#endif // USE_LIBCURL