Коммит b4ca9d24 создал по автору Леляев Петр Алексеевич's avatar Леляев Петр Алексеевич
Просмотр файлов

Снят polkit с открытия инструкции :)

владелец 8fb802ba
......@@ -288,18 +288,15 @@ class CallsSettings(QWidget):
self.is_breaks_music_on = False
def download_instructions(self):
if not authority_check("download_instructions"):
print('Скачивание не удалось.')
else:
try:
current_user_on_x = get_current_user_on_x()
if current_user_on_x:
run_command(f'chromium-browser '
f'https://hub.mos.ru/mos/src/school-ringer/-/blob/master/instruction.pdf')
else:
logging.info('Не найден пользователь с графической оболочкой. Невозможно открыть инструкцию')
except Exception as e:
logging.info(f'Возникло исключение: {e}. Невозможно открыть инструкцию.')
try:
current_user_on_x = get_current_user_on_x()
if current_user_on_x:
run_command(f'chromium-browser '
f'https://hub.mos.ru/mos/src/school-ringer/-/blob/master/instruction.pdf')
else:
logging.info('Не найден пользователь с графической оболочкой. Невозможно открыть инструкцию')
except Exception as e:
logging.info(f'Возникло исключение: {e}. Невозможно открыть инструкцию.')
def initUI(self) -> None:
"""
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать