Browse Source

Исправлен объект информации о наличии обновлений

tags/3.2.2
Mike Khiretskiy 6 years ago
parent
commit
120b314214
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      pym/update/update_info.py

+ 7
- 3
pym/update/update_info.py View File

@@ -46,9 +46,13 @@ class UpdateInfo(object):
"""
return SystemIni().getVar(cls.section, cls.varname) == u'on'

def set_update_ready(self, value):
SystemIni().setVar(self.section,
{self.varname:"on" if value else "off"})
@classmethod
def set_update_ready(cls, value):
"""
Установить статус обновления
"""
SystemIni().setVar(cls.section,
{cls.varname:"on" if value else "off"})

def check_for_dispatch(self):
"""


Loading…
Cancel
Save