Pythonista-Issues icon indicating copy to clipboard operation
Pythonista-Issues copied to clipboard

console.set_idle_timer_disabled broken in v 3.3 (330025)

Open drgrib opened this issue 5 years ago • 1 comments

This program immediately crashes the app now:

import console
console.set_idle_timer_disabled(True)

drgrib avatar Mar 02 '20 03:03 drgrib

omz has posted a workaround for this on the forums, by the way: https://forum.omz-software.com/topic/5295/new-beta-for-pythonista-3-3/95

Sorry about the issue with console.set_idle_timer_disabled. Please use this workaround for now:

import console

def fix_set_idle_timer_disabled(flag=True):
    from objc_util import on_main_thread
    on_main_thread(console.set_idle_timer_disabled)(flag)

dgelessus avatar Mar 02 '20 10:03 dgelessus