Commit ea4c7f61 authored by Florian Müllner's avatar Florian Müllner

Disable auto-paste behavior for now

There hasn't been any design input, so the current implementation
isn't much more than a prototype. Rather than including half-baked
features, disable it for now.
parent 528d37ec
......@@ -267,7 +267,8 @@ const IrcParser = new Lang.Class({
},
_sendOrPasteText: function(text) {
if (text.split('\n').length > MAX_LINES) {
// auto-paste needs some design; disable for now
if (false && text.split('\n').length > MAX_LINES) {
let app = Gio.Application.get_default();
app.pasteManager.pasteText(text);
} else {
......
......@@ -32,6 +32,9 @@ const PasteManager = new Lang.Class({
},
addWidget: function(widget) {
// auto-paste needs some design; disable for now
return;
if (this._widgets.indexOf(widget) != -1)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment