Update split mode on tab switch (21bbbaa7) · Commits · PBS / Inkscape · GitLab
PBS
·
2026-05-07
·
via PBS activity
| Original line number |
Diff line number |
Diff line |
|
@@ -328,6 +328,9 @@ void SPDesktopWidget::switchDesktop(SPDesktop *desktop) |
|
|
if (auto action = dynamic_cast<Gio::SimpleAction *>(_window->lookup_action("canvas-color-mode").get())) {
|
|
|
action->set_state(Glib::Variant<bool>::create(_desktop->getCanvas()->get_color_mode() == Inkscape::ColorMode::GRAYSCALE));
|
|
|
}
|
|
|
if (auto action = dynamic_cast<Gio::SimpleAction *>(_window->lookup_action("canvas-split-mode").get())) {
|
|
|
action->set_state(Glib::Variant<int>::create((int)_desktop->getCanvas()->get_split_mode()));
|
|
|
}
|
|
|
if (auto action = dynamic_cast<Gio::SimpleAction *>(_window->lookup_action("canvas-color-manage").get())) {
|
|
|
action->set_state(Glib::Variant<bool>::create(_desktop->getCanvas()->get_cms_active()));
|
|
|
}
|
|
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。