forked from flameshot-org/flameshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove fullscreen arg to CaptureWidget and minor cleanup
There is a `bool fullScreen` arg to CaptureWidget that wasn't being used anywhere. There are a few places in the code which are conditional on that variable but in fact the widget wouldn't be functional without those pieces of code. This commit removes the argument to the initializer, the corresponding attribute from the context attribute and any conditionals around them (the code in the conditionals stayed). I also shuffled stuff around a little bit in `initWindowFlags()` so that the move and resize calls could be common between both paths that use them.
- Loading branch information
Showing
2 changed files
with
46 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters