[GNC] Locking the side bar items

Paul Kroitor paul at kroitor.ca
Tue Apr 11 18:23:19 EDT 2023


Perhaps the OP's issue is variation of a slightly different issue that I've
asked about in the past.

I have Gnucash set so the tabs are across the top, and reports open as
additional tabs in the main window. I can open and configure many reports
during a session, and these reports survive a close and re-open. Thus I
configure each set of books to have all my favourite reports and graphs
available immediately upon opening the file.

BUT I have my registers set to open in separate windows (so I can work in
more than one at a time). The upshot is that if I close all the register
windows first, and then the main window (the one with the Chart of Accounts,
reports, graphs, etc), it all works as intended.

However, if one of the register windows is still open somewhere -- hidden
behind another app, perhaps -- when I close the main window, everything is
catastrophically lost. Reopening the file opens only the straggling register
window and I have to 
re-establish a Chart of Accounts tab, and then labouriously reconstruct all
the reports and graphs I like.

I've been meaning to code a warning upon close if the main window (the
window including the Chart of Accounts tab) is ever closed when other
floating windows are still open, as this presumably would never happen on
purpose -- perhaps I will get to it one of these months as it drives me
crazy.

Paul


-----Original Message-----
From: gnucash-user <gnucash-user-bounces+paul=kroitor.ca at gnucash.org> On
Behalf Of Stan Brown
Sent: Tuesday, April 11, 2023 3:05 PM
To: gnucash-user at gnucash.org
Subject: Re: [GNC] Locking the side bar items


I read the OP's question a little differently. I think the OP wants some way
to tell GnuCash, "When I click the "Close" button, I don't want the
currently open tab to close." In other words, I don't think it's about what
happens when GC reopens, it's about having GC ignore a button click that the
user didn't mean to make.

I can sympathize: It took me a while to learn that the Close button doesn't
close the program, as I would have expected, and even now every once in a
while I close a tab when I wanted to close the program.
(Close buttons on a tab should close that tab; a close button not on a tab
should close the program -- or so it seems to me.)

But that's how GC works, and we just have to learn it. I didn't post an
answer earlier because I don't think there's any way to change this
behavior.

One thing that might help the OP, at least in Windows, is never to sue the
Close button but instead close a tab (when desired) with Ctrl+W and close
the program (if desired) with Alt+F4.

Stan Brown
Tehachapi, CA, USA
https://BrownMath.com

On 2023-04-11 11:49, Adrien Monteleone wrote:
> I've never seen a case where the open tabs *don't* re-open when I next 
> open the file.
> 
> That's already a feature.
> 
> Maybe there is a reason it isn't working properly on your system.
> 
> Regards,
> Adrien
> 
> On 4/11/23 5:30 AM, G R Hewitt wrote:
>> Greetings all,
>>
>> I was just wondering if there was anyway to prevent (lock) opened 
>> tabs from being closed.
>>
>> I have all the things I use - P&L, BS etc., on the right, and just 
>> can't seem to break the habit of clicking 'Close' to close the 
>> program, which closes the open tab instead.>
>>
>> If not, could this be added as a feature at some point?
_______________________________________________
gnucash-user mailing list
gnucash-user at gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.



More information about the gnucash-user mailing list