Skip to content

Commit

Permalink
window: Reload applications everytime installation changes
Browse files Browse the repository at this point in the history
Closes #187
  • Loading branch information
tchx84 committed Sep 1, 2023
1 parent b39227b commit 684100b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widgets/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const {FlatsealRelativePathRow} = imports.widgets.relativePathRow;
const {FlatsealVariableRow} = imports.widgets.variableRow;
const {FlatsealBusNameRow} = imports.widgets.busNameRow;
const {FlatsealSettingsModel} = imports.models.settings;
const {FlatpakMonitorModel} = imports.models.monitor;
const {isGlobalOverride} = imports.models.globalModel;

const _bindFlags = GObject.BindingFlags.BIDIRECTIONAL | GObject.BindingFlags.SYNC_CREATE;
Expand Down Expand Up @@ -135,6 +136,9 @@ var FlatsealWindow = GObject.registerClass({
this._backButton.connect('clicked', this._showApplications.bind(this));

this._applicationsSearchBar.set_key_capture_widget(this.root);

this._monitor = new FlatpakMonitorModel();
this._monitor.connect('changed', this._setupApplications.bind(this));
}

_setupApplications() {
Expand Down Expand Up @@ -269,6 +273,7 @@ var FlatsealWindow = GObject.registerClass({

_shutdown() {
this._permissions.shutdown();
this._monitor.shutdown();
}

_selectApplicationDelayed() {
Expand Down

0 comments on commit 684100b

Please sign in to comment.