parent
31ef9691da
commit
5ceef68fe1
5 changed files with 21 additions and 23 deletions
|
@ -3,11 +3,11 @@ import { PopupWindow } from 'global-types';
|
|||
|
||||
|
||||
export default () => {
|
||||
(Array.from(App.windows) as Array<[string, PopupWindow]>)
|
||||
.filter((w) =>
|
||||
w[1].attribute.close_on_unfocus &&
|
||||
w[1].attribute.close_on_unfocus !== 'stay')
|
||||
(App.windows as Array<PopupWindow>)
|
||||
.filter((w) => w &&
|
||||
w.close_on_unfocus &&
|
||||
w.close_on_unfocus !== 'stay')
|
||||
.forEach((w) => {
|
||||
App.closeWindow(w[0]);
|
||||
App.closeWindow(w.name);
|
||||
});
|
||||
};
|
||||
|
|
|
@ -25,6 +25,10 @@ import {
|
|||
} from 'global-types';
|
||||
|
||||
|
||||
// Set Notifications settings
|
||||
Notifications.popupTimeout = 5000;
|
||||
Notifications.cacheActions = true;
|
||||
|
||||
const setTime = (time: number) => {
|
||||
return GLib.DateTime
|
||||
.new_from_unix_local(time)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue