Ticket #5862: Screenshot-delay-wim.patch
File Screenshot-delay-wim.patch, 1.2 KB (added by , 15 years ago) |
---|
-
src/apps/screenshot/ScreenshotWindow.cpp
127 127 settings.FindInt64("delay", &fDelay); 128 128 settings.FindString("outputFilename", &fOutputFilename); 129 129 130 _TakeScreenshot(0); 130 131 _InitWindow(settings); 131 132 CenterOnScreen(); 132 133 Show(); … … 144 145 fScreenshot(NULL), 145 146 fOutputPathPanel(NULL), 146 147 fLastSelectedPath(NULL), 147 fDelay( delay),148 fDelay(0), 148 149 fTabHeight(0), 149 150 fIncludeBorder(includeBorder), 150 151 fIncludeMouse(includeMouse), … … 156 157 fImageFileType(imageFileType) 157 158 { 158 159 if (fSaveScreenshotSilent) { 159 _TakeScreenshot( fDelay);160 _TakeScreenshot(delay); 160 161 _SaveScreenshot(); 161 162 be_app_messenger.SendMessage(B_QUIT_REQUESTED); 162 163 } else { 164 if (!fShowConfigWindow) 165 _TakeScreenshot(delay); 166 163 167 BMessage settings = _ReadSettings(); 164 168 _InitWindow(settings); 165 169 CenterOnScreen(); … … 332 336 _SetupSecondLayoutItem(layout, settings); 333 337 334 338 if (!fShowConfigWindow) { 335 _TakeScreenshot(0);336 339 _UpdatePreviewPanel(); 337 340 layout->SetVisibleItem(1L); 338 341 fSaveScreenshot->MakeDefault(true);