Skip to content

Commit

Permalink
hide progressbar and update api key
Browse files Browse the repository at this point in the history
  • Loading branch information
calo001 committed Aug 19, 2021
1 parent 8e405df commit 46b5c8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Configs/Constants.vala
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ namespace App.Configs {
public abstract const string SEARCH = "search/";

// API KEY for production, only use this key in releases for AppCenter
//public abstract const string ACCESS_KEY_UNSPLASH = "db4d69677b2838dfc4f9ef73ee79dcde8412472617bc96adefde321bd08a76f2";
public abstract const string ACCESS_KEY_UNSPLASH = "db4d69677b2838dfc4f9ef73ee79dcde8412472617bc96adefde321bd08a76f2";

// API KEY for development, only use this key in updates and fixes
public abstract const string ACCESS_KEY_UNSPLASH = "51531311dfa090ab81321cd2655e73c59b3d952b5966ed42e861fa7d50da47e8";
//public abstract const string ACCESS_KEY_UNSPLASH = "51531311dfa090ab81321cd2655e73c59b3d952b5966ed42e861fa7d50da47e8";

public abstract const string URI_PAGE = API_UNSPLASH + GET + ACCESS_KEY_UNSPLASH;
public abstract const string URI_SEARCH_PAGE = API_UNSPLASH + SEARCH + GET + ACCESS_KEY_UNSPLASH;
Expand Down
6 changes: 6 additions & 0 deletions src/Views/CardPhotoView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ namespace App.Views {
bar.margin_start = 4;
bar.margin_end = 4;

bar.notify["fraction"].connect(() => {
if (bar.fraction == 1.0) {
bar.visible = false;
}
});

/******************************************
Revealer for progress
******************************************/
Expand Down

0 comments on commit 46b5c8e

Please sign in to comment.