Solving issue 2161: "Hide Filmstrip elements"

"t" has been remapped to "Ctrl+t" to show the content of the Trash
"t" now show/hide the film strip and update the size of the allocated space
"Shift-t" show/hide the film strip and keep the allocated space identical, preventing a main preview refresh
This commit is contained in:
Hombre
2014-11-03 20:16:06 +01:00
parent aacd088ad6
commit 1f64148fc9
28 changed files with 282 additions and 103 deletions

View File

@@ -1081,7 +1081,7 @@ bool FileBrowser::keyPressed (GdkEventKey* event) {
}
void FileBrowser::saveThumbnailHeight (int height) {
if (!options.sameThumbSize && inTabMode)
if (!options.sameThumbSize && getLocation()==THLOC_EDITOR)
options.thumbSizeTab = height;
else
options.thumbSize = height;
@@ -1089,7 +1089,7 @@ void FileBrowser::saveThumbnailHeight (int height) {
int FileBrowser::getThumbnailHeight () {
// The user could have manually forced the option to a too big value
if (!options.sameThumbSize && inTabMode)
if (!options.sameThumbSize && getLocation()==THLOC_EDITOR)
return std::max(std::min(options.thumbSizeTab, 800), 10);
else
return std::max(std::min(options.thumbSize, 800), 10);