Skip to content

Commit

Permalink
Upload version 2.5 - 2022/02/22
Browse files Browse the repository at this point in the history
  • Loading branch information
mxnt10 committed Feb 28, 2022
1 parent 401b723 commit 0f3d8c7
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file.
Todas as mudanças notáveis neste projeto serão documentadas neste arquivo.


## [ 2.5 ] - 2022-02-27 #############################################

### Fixed / Corrigido
- Prevent logo icon size too large in about.
- Fixed notifications messages.
- Fixed install.sh
###


## [ 2.4 ] - 2022-02-20 #############################################

### Added / Adicionado
Expand Down
2 changes: 1 addition & 1 deletion RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4
2.5
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ echo "#!/bin/bash
cd /usr/share/$PRGNAM
[ \"\$(grep -E \"nouveau|nvidia\" <(lsmod))\" ] && {
LIBGL_ALWAYS_SOFTWARE=1 python3 main.py
LIBGL_ALWAYS_SOFTWARE=1 python3 main.py || exit 1
} || {
python3 main.py
python3 main.py || exit 1
}" > "$install_root"/usr/bin/"$PRGNAM"

chmod 755 "$install_root"/usr/bin/"$PRGNAM"
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.textUpdate1 = self.textUpdate2 = self.textUpdate3 = self.message1 = self.message2 = self.res = None
self.textUpdate1 = self.textUpdate2 = self.textUpdate3 = self.message1 = self.message2 = None
self.start = self.notify_start = self.reload_start = self.ckUpdate = False
self.notify = self.changeTray = self.soma = 0

Expand Down
5 changes: 2 additions & 3 deletions src/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
from utils import setIcon, setSound
from version import __pagename__

varClass = '_7UhW9 vy6Bb MMzan h_zdq uL8Hv T0kll '


########################################################################################################################

Expand All @@ -34,7 +32,8 @@ def verifyNotify(self, res):
self.soma = 0
for tag in res.xpath('//div[@class="bqXJH"]'):
self.soma += int(tag.text)
for tag in res.xpath('//div[@class="' + varClass + '"]'):
for tag in res.xpath(
'//*[@id="react-root"]/section/nav/div[2]/div/div/div[3]/div/div[5]/a/div/div/div/div[2]/div/div/div/div'):
self.soma += int(tag.text)
if self.soma != self.notify and self.soma != 0:
if self.isHidden() or int(self.windowState()) == 1 or int(self.windowState()) == 3:
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

__pagename__ = __appname__ + ' - Instagram Desktop'

__version__ = '2.4'
__version__ = '2.5'

__url__ = 'https://www.instagram.com/'

Expand Down

0 comments on commit 0f3d8c7

Please sign in to comment.