mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 01:58:41 -05:00
'fix' for case sensitive file dialog
This commit is contained in:
parent
68ade9ba2e
commit
1e7874636e
3 changed files with 3 additions and 5 deletions
5
todo
5
todo
|
|
@ -23,11 +23,8 @@ optipng for png and gif, jpegoptim for jpeg. both are available in ubuntu as dep
|
||||||
|
|
||||||
==========================================
|
==========================================
|
||||||
todo app wise
|
todo app wise
|
||||||
- implement drag and drop on table
|
- implement threading
|
||||||
- implement threading (and include advpng then)
|
|
||||||
- errors need to go to standarderror
|
- errors need to go to standarderror
|
||||||
- implement a case insensitive file dialog open
|
|
||||||
^ we can do this, but this is only needed for linux. for now lets just add uppercase equivalents
|
|
||||||
- make icon
|
- make icon
|
||||||
|
|
||||||
todo else
|
todo else
|
||||||
|
|
|
||||||
BIN
trimage-icon.png
BIN
trimage-icon.png
Binary file not shown.
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.7 KiB |
|
|
@ -96,7 +96,8 @@ class StartQT4(QMainWindow):
|
||||||
images = fd.getOpenFileNames(self,
|
images = fd.getOpenFileNames(self,
|
||||||
"Select one or more image files to compress",
|
"Select one or more image files to compress",
|
||||||
"", # directory
|
"", # directory
|
||||||
"Image files (*.png *.jpg *.jpeg)")
|
# this is a fix for file dialog differenciating between cases
|
||||||
|
"Image files (*.png *.jpg *.jpeg *.PNG *.JPG *.JPEG)")
|
||||||
for image in images:
|
for image in images:
|
||||||
if self.checkname(image):
|
if self.checkname(image):
|
||||||
self.compress_file(image)
|
self.compress_file(image)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue