Reduced thumbnail refreshing on enter single tab mode (faster, might be more stable also), see issue #337
This commit is contained in:
@@ -495,7 +495,7 @@ void ThumbBrowserBase::refreshThumbImages () {
|
|||||||
for (int i=0; i<fd.size(); i++){
|
for (int i=0; i<fd.size(); i++){
|
||||||
previewHeight = inTabMode ? options.thumbSizeTab : options.thumbSize;
|
previewHeight = inTabMode ? options.thumbSizeTab : options.thumbSize;
|
||||||
fd[i]->resize (previewHeight);// TODO!!! Might be performance bottleneck
|
fd[i]->resize (previewHeight);// TODO!!! Might be performance bottleneck
|
||||||
fd[i]->refreshThumbnailImage ();
|
fd[i]->refreshThumbnailImage (); // TODO: This might cause crashes on some installations
|
||||||
}
|
}
|
||||||
|
|
||||||
redraw ();
|
redraw ();
|
||||||
@@ -525,10 +525,12 @@ void ThumbBrowserBase::enableTabMode(bool enable) {
|
|||||||
inTabMode = enable;
|
inTabMode = enable;
|
||||||
arrangement = inTabMode ? ThumbBrowserBase::TB_Horizontal : ThumbBrowserBase::TB_Vertical;
|
arrangement = inTabMode ? ThumbBrowserBase::TB_Horizontal : ThumbBrowserBase::TB_Vertical;
|
||||||
|
|
||||||
if (options.thumbSizeTab!=options.thumbSize)
|
if (options.thumbSizeTab!=options.thumbSize) {
|
||||||
refreshThumbImages();
|
for (int i=0; i<fd.size(); i++)
|
||||||
else
|
fd[i]->resize (inTabMode ? options.thumbSizeTab : options.thumbSize);
|
||||||
redraw();
|
}
|
||||||
|
|
||||||
|
redraw ();
|
||||||
|
|
||||||
// Scroll to selected position if going into ribbon mode
|
// Scroll to selected position if going into ribbon mode
|
||||||
if (inTabMode && !selected.empty()) {
|
if (inTabMode && !selected.empty()) {
|
||||||
|
Reference in New Issue
Block a user