27 lines
943 B
Diff
27 lines
943 B
Diff
From 9ed597b027d32574bb3ebe45091f4123560ad42a Mon Sep 17 00:00:00 2001
|
|
From: Christopher Davis <christopherdavis@gnome.org>
|
|
Date: Thu, 6 Jul 2023 10:18:14 -0400
|
|
Subject: [PATCH] window: Unpack recent-characters GValue
|
|
|
|
Currently `get_strv()` causes a crash due to a GJS issue.
|
|
---
|
|
src/window.js | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/window.js b/src/window.js
|
|
index 77305b6..712e2d8 100644
|
|
--- a/src/window.js
|
|
+++ b/src/window.js
|
|
@@ -71,7 +71,7 @@ var MainWindow = GObject.registerClass({
|
|
|
|
// FIXME: Can't use GSettings.bind with 'as' from Gjs
|
|
let recentCharacters = Main.settings.get_value('recent-characters');
|
|
- this.recentCharacters = recentCharacters.get_strv();
|
|
+ this.recentCharacters = recentCharacters.deepUnpack();
|
|
this._maxRecentCharacters = 100;
|
|
Main.settings.bind('max-recent-characters', this,
|
|
'max-recent-characters',
|
|
--
|
|
GitLab
|
|
|