Skip to content

Commit

Permalink
(upd) delete temporary QR code file
Browse files Browse the repository at this point in the history
  • Loading branch information
javadr committed Apr 8, 2023
1 parent d1a65ea commit c375000
Show file tree
Hide file tree
Showing 4 changed files with 3,288 additions and 3,282 deletions.
8 changes: 6 additions & 2 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
0.7.4 -- 2023-04-08
-- Delete the generated QR code file.
-- Use lego.png from resource.

0.7.3 -- 2023-04-08
-- Use the samefile for QR Code in each run to save disk.
-- Use the same file for QR Code in each run to save disk space

0.7.2 -- 2023-04-07
-- Fix issue #10, QR crash in Windows
Expand Down Expand Up @@ -163,4 +167,4 @@ New Design Branch - 2022-04-29 -- 2022-05-03
-- Make sure that at leaset the `python-negar` ver 1.1.4 is installed.

0.1 - 2022-04-10
-- Initial release.
-- Initial release.
5 changes: 3 additions & 2 deletions negar_gui/constants.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from pathlib import Path
import platform

__version__ = "0.7.3"
__version__ = "0.7.4"

if platform.system() == 'Windows':
LOGO = ":/images/icons/logo_small.png"
else:
LOGO = (Path(__file__).parent.absolute() / "icons/logo.png").as_posix()
LOGO = ":/images/icons/logo.png"
# (Path(__file__).parent.absolute() / "icons/logo.png").as_posix()
1 change: 1 addition & 0 deletions negar_gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ def qrcode(self):
if w-90 < img.size[0]:
pixmap = pixmap.scaled(w-90, w-90, Qt.KeepAspectRatio)
HelpWindow(parent=self, title='QR Code', label=pixmap).show()
(Path(temp_path)/'negar-gui_qrcode.png').unlink()

def _statusBar(self, notification='', timeout=0):
self.statusBar.showMessage(f'Negar v{negar__version} [[Negar-GUI v{__version__}]] {notification}', timeout)
Expand Down
Loading

0 comments on commit c375000

Please sign in to comment.