Accepting request 880975 from GNOME:Apps

OBS-URL: https://build.opensuse.org/request/show/880975
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/foliate?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2021-03-24 15:16:43 +00:00 committed by Git OBS Bridge
commit 5040a05b39
3 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,30 @@
From 2c28932c6266cbeddbe49d7aa6ca8d70d125e96f Mon Sep 17 00:00:00 2001
From: John Factotum <50942278+johnfactotum@users.noreply.github.com>
Date: Sat, 20 Mar 2021 22:52:23 +0800
Subject: [PATCH] Don't write to construct only property after construction
Fixes #689
---
src/window.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/window.js b/src/window.js
index 824781b..464edc0 100644
--- a/src/window.js
+++ b/src/window.js
@@ -1022,8 +1022,14 @@ var Window = GObject.registerClass({
this.loading = true
this._setTitle(_('Foliate'))
}
+ get file() {
+ return this._file || null
+ }
+ set file(file) {
+ this._file = file
+ }
open(file) {
- this.file = file
+ this._file = file
this._epub.open(file)
}
_connectEpub() {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Mar 21 15:03:26 UTC 2021 - Marcus Rueckert <mrueckert@suse.de>
- Added https://github.com/johnfactotum/foliate/commit/2c28932c6266cbeddbe49d7aa6ca8d70d125e96f.patch
Make foliate work with GNOME 40 (gh:johnfactotum/foliate#689)
-------------------------------------------------------------------
Fri Nov 27 23:28:16 UTC 2020 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package foliate
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,6 +26,7 @@ License: GPL-3.0-only
Group: Productivity/Office/Other
URL: https://johnfactotum.github.io/foliate/
Source: %{name}-%{version}.tar.gz
Patch: https://github.com/johnfactotum/foliate/commit/2c28932c6266cbeddbe49d7aa6ca8d70d125e96f.patch
BuildRequires: fdupes
BuildRequires: gcc-c++