diff --git a/rtgui/editorpanel.cc b/rtgui/editorpanel.cc index d3c1bbff8..af4bd1401 100644 --- a/rtgui/editorpanel.cc +++ b/rtgui/editorpanel.cc @@ -38,6 +38,7 @@ EditorPanel::EditorPanel (FilePanel* filePanel) epih->pending = 0; processingStartedTime = 0; + firstProcessingDone = false; // construct toolpanelcoordinator tpc = new ToolPanelCoordinator (); @@ -609,6 +610,11 @@ void EditorPanel::refreshProcessingState (bool inProcessingP) { // Set progress bar "done" s->str = "PROGRESSBAR_READY"; s->val = 1.0; + +#ifdef WIN32 + if (!firstProcessingDone && (RTWindow*)parent->getIsFullscreen()) { parent->fullscreen(); } +#endif + firstProcessingDone = true; } isProcessing=inProcessingP; diff --git a/rtgui/editorpanel.h b/rtgui/editorpanel.h index 6dc722871..f93ea0aea 100644 --- a/rtgui/editorpanel.h +++ b/rtgui/editorpanel.h @@ -94,6 +94,7 @@ class EditorPanel : public Gtk::VBox, BatchToolPanelCoordinator* btpCoordinator; FilePanel* fPanel; + bool firstProcessingDone; Thumbnail* openThm; // may get invalid on external delete event Glib::ustring fname; // must be safed seperately diff --git a/rtgui/rtwindow.h b/rtgui/rtwindow.h index 7f076c70c..07c6b5ee4 100644 --- a/rtgui/rtwindow.h +++ b/rtgui/rtwindow.h @@ -77,6 +77,8 @@ class RTWindow : public Gtk::Window, public rtengine::ProgressListener{ void SetMainCurrent(); void MoveFileBrowserToEditor(); void MoveFileBrowserToMain(); + + bool getIsFullscreen() { return is_fullscreen; } }; #endif