Refresh app database after saving customizations

This commit is contained in:
Taylor Helsper 2021-06-23 21:54:23 -05:00
parent 88803e8dcd
commit 1723bc04dd
2 changed files with 5 additions and 3 deletions

View File

@ -6,6 +6,7 @@ from systemctl_info import *
from utilities import *
import copy
import json
import time
import subprocess
import re
import os
@ -698,11 +699,11 @@ def get_custom_app_version_data():
def save_custom_app_version_data(data):
set_file_contents("/usr/share/mynode/mynode_app_versions_custom.sh", data)
set_file_contents("/mnt/hdd/mynode/settings/mynode_app_versions_custom.sh", data)
need_application_refresh()
os.system("sync")
trigger_application_refresh()
def reset_custom_app_version_data():
os.system("rm -f /usr/share/mynode/mynode_app_versions_custom.sh")
os.system("rm -f /mnt/hdd/mynode/settings/mynode_app_versions_custom.sh")
need_application_refresh()
os.system("sync")
os.system("sync")
trigger_application_refresh()

View File

@ -28,6 +28,7 @@ a:active {
.main_header_sub_text,
.sub_header,
.sub_header_sub_text,
.text_block,
.warning_div,
.format_div,
.app_title,