mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-05 20:51:15 -07:00
Change os.name to common.PLATFORM
This commit is contained in:
parent
9ee2c1f7a6
commit
e6befab6bb
3 changed files with 5 additions and 5 deletions
|
@ -35,8 +35,8 @@ import time
|
|||
import tzlocal
|
||||
|
||||
import plexpy
|
||||
from plexpy import config, database, helpers, logger, webstart
|
||||
if os.name == 'nt':
|
||||
from plexpy import common, config, database, helpers, logger, webstart
|
||||
if common.PLATFORM == 'Windows':
|
||||
from plexpy import windows
|
||||
|
||||
# Register signals, such as CTRL + C
|
||||
|
@ -241,7 +241,7 @@ def main():
|
|||
webstart.start()
|
||||
|
||||
# Windows system tray icon
|
||||
if os.name == 'nt':
|
||||
if common.PLATFORM == 'Windows':
|
||||
windows.set_startup()
|
||||
if plexpy.CONFIG.WIN_SYS_TRAY:
|
||||
windows.win_system_tray()
|
||||
|
|
|
@ -448,7 +448,7 @@
|
|||
</div>
|
||||
|
||||
<p class="help-block">Note: Web interface changes require a restart.</p>
|
||||
% if os.name == 'nt':
|
||||
% if common.PLATFORM == 'Windows':
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" class="http-settings" name="win_sys_tray" id="win_sys_tray" value="1" ${config['win_sys_tray']}> Enable System Tray Icon
|
||||
|
|
|
@ -3179,7 +3179,7 @@ class WebInterface(object):
|
|||
|
||||
# Enable or disable system startup
|
||||
if startup_changed:
|
||||
if os.name == 'nt':
|
||||
if common.PLATFORM == 'Windows':
|
||||
windows.set_startup()
|
||||
|
||||
# Get new server URLs for SSL communications and get new server friendly name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue