fthx / no-overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simpler approach

icedman opened this issue · comments

``js
/*
License: GPL v3
*/

const Main = imports.ui.main;

class Extension {
constructor() {
}

enable() {
    if (!Main.overview._runStartupAnimation) {
        Main.overview._runStartupAnimation = Main.overview.runStartupAnimation;
    }

    Main.overview.runStartupAnimation = (callback) => {
        callback();
    }
}

disable() {
    Main.overview.runStartupAnimation = Main.overview._runStartupAnimation;
}

}

function init() {
return new Extension();
}

``

commented

Thanks for the proposal.

I tried it and I have two notes:

  • there are silent errors (see logs, 'js' search, related to overview)
  • I don't feel this approach to be simpler, that's just a (working!) hack like mine (+ addons by Florian)?

If you find a natural way to just disable the start-up overview (means without any modification of global functions/parameters), of course I'll take it with pleasure.