Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Development section... #233

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions budgie-welcome
Original file line number Diff line number Diff line change
Expand Up @@ -227,26 +227,26 @@ class AppView(WebKit2.WebView):
app.update_page('.before1904', 'hide')
app.update_page('.after1904', 'show')

if current_page == 'budgie-applets':
# applets are distro specific so need to hide/show as appropriate
if current_page in ['budgie-applets', 'development']:
# packages can be distro specific, so need to hide/show as appropriate
package = app._data_path + "/config/packages.json"

with open(package) as file:
config = json.load(file)

for applet in config['budgie-applets']:
if systemstate.codename in config['budgie-applets'][applet]['repos']:
app.update_page("." + applet, 'show')
for package_name in config[current_page]:
if any(elem in [systemstate.codename, 'all'] for elem in config[current_page][package_name]['repos']):
app.update_page("." + package_name, 'show')
else:
app.update_page("." + applet, 'hide')
app.update_page("." + pacage_name, 'hide')

if systemstate.bde_version == 'NA':
app.update_page(".showhide", 'show')
else:
app.update_page(".showhide", 'hide')

### All pages with install/removal ###
if current_page in ['gettingstarted', 'default', 'recommendations', 'budgie-applets']:
if current_page in ['gettingstarted', 'default', 'recommendations', 'budgie-applets', 'development']:
app.update_page('[id$=install]', 'hide')
app.update_page('[id$=remove]', 'hide')

Expand Down
Loading