[aseprite] 88/308: Keep Undo History window position between sessions
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:44:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 3da1a80b6397e8c359fbea09e4dfee8d841c148b
Author: David Capello <davidcapello at gmail.com>
Date: Fri Dec 11 14:02:42 2015 -0300
Keep Undo History window position between sessions
---
src/app/commands/cmd_undo_history.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/app/commands/cmd_undo_history.cpp b/src/app/commands/cmd_undo_history.cpp
index a1ee5b3..7ff525b 100644
--- a/src/app/commands/cmd_undo_history.cpp
+++ b/src/app/commands/cmd_undo_history.cpp
@@ -17,6 +17,7 @@
#include "app/document_access.h"
#include "app/document_undo.h"
#include "app/document_undo_observer.h"
+#include "app/modules/gui.h"
#include "base/bind.h"
#include "doc/context_observer.h"
#include "doc/documents_observer.h"
@@ -59,6 +60,8 @@ private:
switch (msg->type()) {
case ui::kOpenMessage:
+ load_window_pos(this, "UndoHistory");
+
m_ctx->addObserver(this);
m_ctx->documents().addObserver(this);
if (m_ctx->activeDocument()) {
@@ -68,6 +71,8 @@ private:
break;
case ui::kCloseMessage:
+ save_window_pos(this, "UndoHistory");
+
if (m_document)
detachDocument();
m_ctx->documents().removeObserver(this);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list